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>pull/1354/merge
parent
77a58ba7c6
commit
ecd0de438c
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue