Skip to content
Commit 35aa0628 authored by ye xingchen's avatar ye xingchen Committed by Sebastian Reichel
Browse files

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: default avatarye xingchen <ye.xingchen@zte.com.cn>
[reword commit message]
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 1b929c02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment