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

From: Andy Shevchenko

Date: Thu Mar 26 2026 - 06:59:31 EST


On Thu, Mar 26, 2026 at 12:46:08PM +0200, Ilpo Järvinen wrote:
> On Wed, 25 Mar 2026, 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 is not currently
> > supported
> >
> > Add INT3472_GPIO_TYPE_STROBE (0x02) handling that registers the GPIO
> > as an LED class device via skl_int3472_register_led(). An enum
> > int3472_led_type parameter controls both the LED name suffix and
> > whether a lookup is registered for the sensor driver. Unlike the
> > privacy LED, the strobe LED is not consumed by the sensor driver, so
> > no LED lookup is registered.
> >
> > To support devices that have both a privacy and a strobe LED, the
> > single struct int3472_led member is replaced with an array and the
> > container_of in the brightness callback now references the int3472_led
> > struct directly.

> > Cc: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

Move Cc...

> > Signed-off-by: Marco Nenciarini <mnencia@xxxxxxxx>
> > ---

...to be here as it reduces noise in the commit message.

> > Changes in v3:
> > - Use enum int3472_led_type to control name and lookup behavior
> > - Convert single LED member to array for multi-LED support
> > - Add default: return -EINVAL for safety

...

> > - ret = led_classdev_register(int3472->dev, &int3472->led.classdev);
> > + ret = led_classdev_register(int3472->dev, &led->classdev);
> > if (ret)
> > return ret;
>
> Could all these int3472->led. => led-> conversion be made in a separate
> patch as well? I think it would reduce churn making the actual changes in
> this patch stand out better.

+1.

--
With Best Regards,
Andy Shevchenko