mfd: Use sysfs_emit() to instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Fri, 2 Dec 2022 07:28:36 +0000 (15:28 +0800)
committerLee Jones <lee@kernel.org>
Wed, 22 Feb 2023 08:25:51 +0000 (08:25 +0000)
commit8cc5e62bae28d02f706a6abc8fd804609579964c
treef7eff3eeddc4e0d172fc0ba0d9cb40866d9c8912
parent5ec32a3e4053c1a726b45381d56aa9e39eaf3911
mfd: Use sysfs_emit() to instead of scnprintf()

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/202212021528368292334@zte.com.cn
drivers/mfd/kempld-core.c
drivers/mfd/lm3533-core.c