]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00ee0211f263d1d5259bcc6c861f74171ff2a8e7
treea391463641f860cd78ed1b7cfef11f9c74f7ef47
parente8c67e97b0b2a303788cdb877889fc13a724adb6
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