Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Zhongqiu Han and committed by
Mark Brown
ecd0de43 77a58ba7

+1 -1
+1 -1
drivers/spi/spi-tle62x0.c
··· 141 141 value = (st->gpio_state >> gpio_num) & 1; 142 142 mutex_unlock(&st->lock); 143 143 144 - return sysfs_emit(buf, "%d", value); 144 + return sysfs_emit(buf, "%d\n", value); 145 145 } 146 146 147 147 static ssize_t tle62x0_gpio_store(struct device *dev,