]> www.infradead.org Git - users/dwmw2/linux.git/commit
platform/x86: x86-android-tablets: Xiaomi pad2 RGB LED fwnode updates
authorKate Hsuan <hpa@redhat.com>
Sat, 4 May 2024 16:41:05 +0000 (18:41 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 14 May 2024 09:43:40 +0000 (11:43 +0200)
commit0b57e2e43c4d257b60c93e9d86ac7a850e21253f
tree0a7701a965940ae5d71cd14e902a72668417dd76
parent492b1194b2bace8925f8a166680621248c7ec543
platform/x86: x86-android-tablets: Xiaomi pad2 RGB LED fwnode updates

Xiaomi pad2 RGB LED fwnode updates:

1. Set "label" instead "function" to change the LED classdev name from
   "rgb:indicator" to "mipad2:rgb:indicator" to match the usual
   triplet name format for LED classdevs.

2. Set the trigger to the new "bq27520-0-charging-orange-full-green"
   powersupply trigger type for multi-color LEDs.

3. Put the fwnode link for red before green in ktd2026_node_group[] so that
   multi_index becomes "red green blue".

Signed-off-by: Kate Hsuan <hpa@redhat.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Co-developed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240504164105.114017-8-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets/other.c