Re: [PATCH v3 10/11] leds: rgb: ktd202x: Initialize max_brightness before registering LED
From: Lee Jones
Date: Fri Nov 27 2026 - 09:40:46 EST
On Sat, 21 Nov 2026, Armin Wolf wrote:
> Am 20.11.26 um 22:22 schrieb Armin Wolf:
>
> > Initializing max_brightness after having already registered the LED
> > class device will overwrite any adjustments made via devicetree and
> > mess up the multicolor LED fallback path for multi_intensity_max.
> >
> > Fix this by initializing max_brightness brefore registering the LED
> > class device.
>
> Sashiko now complains that initializing info[i].intensity with KTD202X_MAX_BRIGHTNESS
> will cause issues if max_brightness is being lowered by devicetree properties.
>
> AFAIK many RGB LED drivers have this problem, and i am uneasy in making large changes
> to them without being able to test them on real hardware.
>
> Do you want me to fix this issue too or do you consider it out-of-scope?
Out of scope for now.
--
Lee Jones