[PATCH v3 0/2] platform/x86: int3472: Add support for strobe LED (GPIO type 0x02)

Marco Nenciarini posted 2 patches 1 week ago
There is a newer version of this series
drivers/platform/x86/intel/int3472/discrete.c | 18 ++++-
drivers/platform/x86/intel/int3472/led.c      | 79 +++++++++++++------
include/linux/platform_data/x86/int3472.h     | 19 ++++-
3 files changed, 84 insertions(+), 32 deletions(-)
[PATCH v3 0/2] platform/x86: int3472: Add support for strobe LED (GPIO type 0x02)
Posted by Marco Nenciarini 1 week ago
Some ACPI INT3472 devices include a GPIO with DSM type 0x02, used for
IR flood (strobe) illumination, which is currently unhandled.

This series first renames the privacy LED code to generic LED naming,
then adds strobe support with an enum-driven switch that controls both
the LED name and whether a lookup is registered.

Changes in v3:
- Split into 2 patches as requested by Andy Shevchenko
- Patch 1/2: pure rename of pled to led (no functional change)
- Patch 2/2: add strobe type with enum, convert single LED member to
  array to support devices with both privacy and strobe GPIOs

Marco Nenciarini (2):
  platform/x86: int3472: Rename pled to led in LED registration code
  platform/x86: int3472: Add support for GPIO type 0x02 (strobe LED)

 drivers/platform/x86/intel/int3472/discrete.c | 18 ++++-
 drivers/platform/x86/intel/int3472/led.c      | 79 +++++++++++++------
 include/linux/platform_data/x86/int3472.h     | 19 ++++-
 3 files changed, 84 insertions(+), 32 deletions(-)

-- 
2.47.3