]> git.itanic.dy.fi Git - linux-stable/commit
thermal: int340x_thermal: Use sysfs_emit_at() instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Tue, 17 Jan 2023 02:42:17 +0000 (10:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 20 Jan 2023 16:59:35 +0000 (17:59 +0100)
commit763bd29fd3d1742153f6c6847ca3b3560e7ca957
tree93dc2f513432e33c9ef07ad4eb655955e9782dc4
parenta30e65792c473f0b758fcfe881264184423bdb52
thermal: int340x_thermal: Use sysfs_emit_at() instead of scnprintf()

Follow the advice of the Documentation/filesystems/sysfs.rst that 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>
[ rjw: Subject rewrite ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/int3400_thermal.c