On Fri, Nov 20, 2026 at 12:08 AM Thorsten Blum <[email protected]> wrote:
> The backlight API requires max_brightness to be supplied at device
> registration and not to be modified afterwards. KTD253 currently sets it
> after registering the device, allowing userspace to read a maximum
> brightness of 0 before the configured value is applied.
>
> Pass the initial brightness, maximum brightness, and power state to
> devm_backlight_device_register() to set them before the sysfs attributes
> become visible to userspace.
>
> Fixes: 5317f37e48b9 ("backlight: Add Kinetic KTD253 backlight driver")
> Signed-off-by: Thorsten Blum <[email protected]>
Looks right.
Reviewed-by: Linus Walleij <[email protected]>
Yours,
Linus Walleij