HID: hid-lg-g15: Use standard multicolor LED API
authorKate Hsuan <hpa@redhat.com>
Fri, 31 Jan 2025 14:02:41 +0000 (22:02 +0800)
committerJiri Kosina <jkosina@suse.com>
Fri, 7 Feb 2025 12:50:59 +0000 (13:50 +0100)
commita3a064146c507ee5207dcf7223cd7a3d7864e085
treea212ff9bdf55b42527397c9c49705dd39d9b725e
parent27c02784773a69fd896e42f3cec73be8c5c83c1f
HID: hid-lg-g15: Use standard multicolor LED API

Replace the custom "color" sysfs attribute with the standard multicolor
LED API.

This also removes the code for the custom "color" sysfs attribute,
the "color" sysfs attribute was never documented so hopefully, it is not
used by anyone.

If we get complaints, we can re-add the "color" sysfs attribute as
a compatibility wrapper setting the subleds intensity.

Signed-off-by: Kate Hsuan <hpa@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-lg-g15.c