diff options
author | 2022-12-06 11:14:08 +0800 | |
---|---|---|
committer | 2023-01-02 08:54:07 +0100 | |
commit | 35aa06286c0927a8444d851d6a1f2603e3dc9229 (patch) | |
tree | b0b4edabc96d498a54d72badf0eda1bc6eb26055 /scripts/lib/kdoc/kdoc_files.py | |
parent | Linux 6.2-rc1 (diff) | |
download | wireguard-linux-35aa06286c0927a8444d851d6a1f2603e3dc9229.tar.xz wireguard-linux-35aa06286c0927a8444d851d6a1f2603e3dc9229.zip |
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 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions