Re: [PATCH v4 4/4] platform/x86: int3472: Add support for GPIO type 0x02 (strobe LED)
From: Andy Shevchenko
Date: Fri Mar 27 2026 - 06:37:06 EST
On Fri, Mar 27, 2026 at 10:07:53AM +0100, Marco Nenciarini wrote:
> Some ACPI INT3472 devices include a GPIO with DSM type 0x02, used for
> IR flood (strobe) illumination. This GPIO type was previously
> unhandled, resulting in the following warning during probe:
>
> int3472-discrete INT3472:00: GPIO type 0x02 unknown; the sensor
> may not work
>
> Add INT3472_GPIO_TYPE_STROBE (0x02) handling that registers the GPIO
> as an LED class device via skl_int3472_register_led(). Unlike the
> privacy LED, the strobe LED is not consumed by the sensor driver, so
> no LED lookup is registered.
...
> [INT3472_LED_TYPE_PRIVACY] = "privacy",
> + [INT3472_LED_TYPE_STROBE] = "strobe",
This was renamed between the versions. Did I miss explanation "why"?
> };
>
> static const char * const int3472_led_con_ids[] = {
> [INT3472_LED_TYPE_PRIVACY] = "privacy",
> + [INT3472_LED_TYPE_STROBE] = NULL,
> };
Not sure if this is better than passing a boolean parameter to the function.
--
With Best Regards,
Andy Shevchenko