]> 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)
commita423059f51a54d838eb79a93166fd93a4d73776b
treea391463641f860cd78ed1b7cfef11f9c74f7ef47
parent4776ab0d4732ebb5167eec44b2738c6df94f7c75
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