diff options
| author | Zhongqiu Han <zhongqiu.han@oss.qualcomm.com> | 2025-10-30 20:47:55 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-10-30 13:08:11 +0000 |
| commit | ecd0de438c1f0ee86cf8f6d5047965a2a181444b (patch) | |
| tree | a058f293a2f89aee46a7ed973f1799f7c1ebbecd | |
| parent | 77a58ba7c64ccca20616aa03599766ccb0d1a330 (diff) | |
spi: tle62x0: Add newline to sysfs attribute output
Append a newline to the sysfs_emit() output in tle62x0_gpio_show. This
aligns with common kernel conventions and improves readability for
userspace tools that expect newline-terminated values.
Signed-off-by: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
Link: https://patch.msgid.link/20251030124755.1828434-1-zhongqiu.han@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | drivers/spi/spi-tle62x0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tle62x0.c b/drivers/spi/spi-tle62x0.c index a565352f6381..663c0136d119 100644 --- a/drivers/spi/spi-tle62x0.c +++ b/drivers/spi/spi-tle62x0.c @@ -141,7 +141,7 @@ static ssize_t tle62x0_gpio_show(struct device *dev, value = (st->gpio_state >> gpio_num) & 1; mutex_unlock(&st->lock); - return sysfs_emit(buf, "%d", value); + return sysfs_emit(buf, "%d\n", value); } static ssize_t tle62x0_gpio_store(struct device *dev, |