Skip to content
Commit 256b734e authored by ye xingchen's avatar ye xingchen Committed by Tzung-Bi Shih
Browse files

platform/chrome: use sysfs_emit() instead of scnprintf()



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

Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/202212021656040995199@zte.com.cn


[tzungbi: fixed the commit message.]
Signed-off-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
parent 1b929c02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment