platform/x86: asus-wmi: Convert all attr-show to use sysfs_emit
authorLuke D. Jones <luke@ljones.dev>
Tue, 9 Aug 2022 02:50:53 +0000 (14:50 +1200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 25 Aug 2022 14:23:53 +0000 (16:23 +0200)
commit170f0da25dac630dacb920d043fb20e12c287520
treea391463641f860cd78ed1b7cfef11f9c74f7ef47
parentc6607bcbbe5395c9eb7d556356941b3e65f11e9f
platform/x86: asus-wmi: Convert all attr-show to use sysfs_emit

This changes all *_show attributes in asus-wmi.c to use sysfs_emit()
instead of the older method of writing to the output buffer manually.

Signed-off-by: Luke D. Jones <luke@ljones.dev>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220809025054.1626339-6-luke@ljones.dev
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-wmi.c