Re: [PATCH v6 3/4] platform/x86: int3472: Parameterize LED con_id in registration
From: Andy Shevchenko
Date: Tue Mar 31 2026 - 06:26:58 EST
On Tue, Mar 31, 2026 at 09:52:03AM +0200, Marco Nenciarini wrote:
> Add a con_id parameter to skl_int3472_register_led() to allow callers
> to specify both the LED name suffix and lookup con_id instead of
> hardcoding "privacy". This prepares for registering additional LED
> types with different names.
>
> No functional change.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
...
> -int skl_int3472_register_led(struct int3472_discrete_device *int3472, struct gpio_desc *gpio);
> +int skl_int3472_register_led(struct int3472_discrete_device *int3472,
> + struct gpio_desc *gpio, const char *con_id);
No need to wrap the line, actually with comma it becomes shorter by 1 character.
int skl_int3472_register_led(struct int3472_discrete_device *int3472, struct gpio_desc *gpio,
const char *con_id);
...
Speaking of this, maybe in the first patch you can simply move the enum to the
same line instead of dragging it here and there.
--
With Best Regards,
Andy Shevchenko