thermal: core: Use sysfs_emit_at() instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Tue, 17 Jan 2023 02:40:26 +0000 (10:40 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 9 Feb 2023 19:39:48 +0000 (20:39 +0100)
commit5bbafd436266136a67224b98e6ad864c4ddd762d
tree5cb50fd506a168c2cba92ceb3d8138477121324c
parent9e0a9be24bdd61a160631227ee995b579be566a5
thermal: core: Use sysfs_emit_at() instead of scnprintf()

Follow the advice in 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 and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_core.c