platform/x86: thinkpad_acpi: change sprintf() to sysfs_emit()
authoryunshui <jiangyunshui@kylinos.cn>
Wed, 17 Apr 2024 09:20:55 +0000 (17:20 +0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Apr 2024 08:52:03 +0000 (10:52 +0200)
commit95cd8806fbb9d3f7acf9eb206f98adbaedc3adb4
treeb892bbdf41a307dd5323cbf897aa3aa0b8ed307b
parentf1f663ebfbec349118c41a5563aa266953200058
platform/x86: thinkpad_acpi: change sprintf() to sysfs_emit()

As Documentation/filesystems/sysfs.rst suggested,
show() should only use sysfs_emit() or sysfs_emit_at() when formatting
the value to be returned to user space.

Signed-off-by: yunshui <jiangyunshui@kylinos.cn>
Reviewed-by: Ai Chao <aichao@kylinos.cn>
Link: https://lore.kernel.org/r/20240417092055.1170586-1-jiangyunshui@kylinos.cn
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c