platform/x86/fujitsu-laptop: Replace sprintf() with sysfs_emit()
authorSzilard Fabian <szfabian@bluemarch.art>
Sun, 28 Apr 2024 19:26:33 +0000 (19:26 +0000)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Apr 2024 11:35:53 +0000 (13:35 +0200)
commitb35814a3c61f4156aff4d7cf16af097f44c00d79
tree05c8fe8470c6639ed7c01d6f0bbd0318c418ffb8
parent5cfac5abb6e23d15669d0621d991d141f4f9b7d4
platform/x86/fujitsu-laptop: Replace sprintf() with sysfs_emit()

As suggested by Documentation/filesystems/sysfs.rst sysfs_emit() should be
used when formatting the value to be returned to user space.

Signed-off-by: Szilard Fabian <szfabian@bluemarch.art>
Link: https://lore.kernel.org/r/20240428192548.113261-1-szfabian@bluemarch.art
Acked-by: Jonathan Woithe <jwoithe@just42.net>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/fujitsu-laptop.c