Re: [PATCH v1 1/2] led: leds-lp50xx: Add max-brightness as in leds-pwm

From: Andy Shevchenko
Date: Thu Jun 29 2023 - 10:08:20 EST


On Thu, Jun 29, 2023 at 03:47:21PM +0200, Astrid Rost wrote:
> Add max-brightness in order to reduce the current on the connected LEDs.
> Normally, the maximum brightness is determined by the hardware, and this
> property is not required. This property is used to set a software limit.
> It could happen that an LED is made so bright that it gets damaged or
> causes damage due to restrictions in a specific system, such as mounting
> conditions.

This will be 4th driver in the LED subsystem that will use this (optional)
property. Perhaps it's time to actually move it to the LED generic bindings
and call this from led_parse_fwnode_props()?

--
With Best Regards,
Andy Shevchenko