platform/x86: sony-laptop: Convert to use sysfs_emit_at() API
authorye xingchen <ye.xingchen@zte.com.cn>
Thu, 8 Dec 2022 07:45:17 +0000 (15:45 +0800)
committerHans de Goede <hdegoede@redhat.com>
Thu, 8 Dec 2022 16:12:28 +0000 (17:12 +0100)
commite80355dd25aeab0e260911829e1495e17219bf1a
treeabefb1464860eac2ac2869883eb42337779ffd88
parente84cfa364339e28f3f4bcc1dcc265dbb210bceea
platform/x86: sony-laptop: 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>
Link: https://lore.kernel.org/r/202212081545178689771@zte.com.cn
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/sony-laptop.c