platform/x86: intel-uncore-freq: Use sysfs_emit() to instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Fri, 23 Sep 2022 06:33:14 +0000 (06:33 +0000)
committerHans de Goede <hdegoede@redhat.com>
Tue, 27 Sep 2022 13:06:32 +0000 (15:06 +0200)
commit76a13da75d3ae5acc3cbc02eef558d8faa12e846
tree95c4e2bcecc92c8a88cdb4badbcbb64200a44a17
parentbbfa903b4f9a0a76719f386367fed5e64187f577
platform/x86: intel-uncore-freq: Use sysfs_emit() to instead of scnprintf()

Replace the open-code with sysfs_emit() to simplify the code.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/20220923063314.239146-1-ye.xingchen@zte.com.cn
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c