cpufreq: stats: Convert to use sysfs_emit_at() API
authorye xingchen <ye.xingchen@zte.com.cn>
Tue, 6 Dec 2022 08:15:22 +0000 (16:15 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 6 Dec 2022 11:20:07 +0000 (12:20 +0100)
commit7ed40bcf8a618436d43b17d565ca35af61bc8e54
tree6a001fd4b49bfd4cc7c56e6dce881bba4e3f6798
parent442046328f27e30ce2c830759af89f42e7169bc1
cpufreq: stats: Convert to use sysfs_emit_at() API

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>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_stats.c