diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-12-06 06:14:08 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2023-01-02 10:54:07 +0300 |
commit | 35aa06286c0927a8444d851d6a1f2603e3dc9229 (patch) | |
tree | b0b4edabc96d498a54d72badf0eda1bc6eb26055 /drivers/power/supply/mp2629_charger.c | |
parent | 1b929c02afd37871d5afb9d498426f83432e71c2 (diff) | |
download | linux-35aa06286c0927a8444d851d6a1f2603e3dc9229.tar.xz |
power: supply: use sysfs_emit() instead of scnprintf() for sysfs show()
As documented in Documentation/filesystems/sysfs.rst the sysfs
show() function should use sysfs_emit() or sysfs_emit_at() to
format the userspace return value. This replaces all instances
of scnprintf() with sysfs_emit() in the power-supply subsystem.
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
[reword commit message]
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/mp2629_charger.c')
0 files changed, 0 insertions, 0 deletions