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
Zhongqiu Han 2025-10-30 20:47:55 +08:00 committed by Mark Brown
parent 77a58ba7c6
commit ecd0de438c
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ static ssize_t tle62x0_gpio_show(struct device *dev,
value = (st->gpio_state >> gpio_num) & 1; value = (st->gpio_state >> gpio_num) & 1;
mutex_unlock(&st->lock); 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, static ssize_t tle62x0_gpio_store(struct device *dev,