]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: rgb: leds-ktd202x: Get device properties through fwnode to support ACPI
authorKate Hsuan <hpa@redhat.com>
Fri, 31 May 2024 11:41:19 +0000 (13:41 +0200)
committerLee Jones <lee@kernel.org>
Fri, 31 May 2024 11:55:44 +0000 (12:55 +0100)
commitf14aa5ea415b8add245e976bfab96a12986c6843
tree5fc3eed124c07a7cd05a7d9b0178a11d67a98799
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
leds: rgb: leds-ktd202x: Get device properties through fwnode to support ACPI

This LED controller is installed on a Xiaomi pad2 and it is an x86
platform. The original driver is based on the device tree and can't be
used for this ACPI based system. This patch migrated the driver to use
fwnode to access the properties. Moreover, the fwnode API supports the
device tree so this work won't affect the original implementations.

Signed-off-by: Kate Hsuan <hpa@redhat.com>
Tested-by: André Apitzsch <git@apitzsch.eu> # on BQ Aquaris M5
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240531114124.45346-2-hdegoede@redhat.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/rgb/Kconfig
drivers/leds/rgb/leds-ktd202x.c