diff options
author | 2022-12-06 11:16:08 +0800 | |
---|---|---|
committer | 2023-01-02 09:13:37 +0100 | |
commit | a441f3b90a340e5c94df36c33fb7000193ee0aa7 (patch) | |
tree | e33d36b3646c785f5c27d61ecbb9e10f443db068 /scripts/lib/kdoc/kdoc_files.py | |
parent | power: supply: use sysfs_emit() instead of scnprintf() for sysfs show() (diff) | |
download | wireguard-linux-a441f3b90a340e5c94df36c33fb7000193ee0aa7.tar.xz wireguard-linux-a441f3b90a340e5c94df36c33fb7000193ee0aa7.zip |
power: supply: use sysfs_emit() instead of sprintf() 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 sysfs related instances of
sprintf() with sysfs_emit() in the power-supply subsystem.
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
[Drop sysfs_emit changes done for code not related to sysfs show
and 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