platform/x86: system76_acpi: Add attribute group for kb_led_color
authorTim Crawford <tcrawford@system76.com>
Wed, 6 Oct 2021 20:22:02 +0000 (14:22 -0600)
committerHans de Goede <hdegoede@redhat.com>
Tue, 19 Oct 2021 14:31:17 +0000 (16:31 +0200)
commit603a7dd08f881e1b5c754429dac5af6c29992528
tree0c73917d832934774e1bfe2d11f82bdf641d9a0b
parent76f7eba3e0a248af4cc4f302d95031fa2fb65fab
platform/x86: system76_acpi: Add attribute group for kb_led_color

Create the attribute groups for kb_led_color and set the `groups` field
in kb_led. While touching it, also change its show method to use
sysfs_emit() instead of sprintf().

Signed-off-by: Tim Crawford <tcrawford@system76.com>
Link: https://lore.kernel.org/r/20211006202202.7479-5-tcrawford@system76.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/system76_acpi.c