Re: [PATCHv3 4/4] backlight: led_bl: fix led -> backlight brightness mapping

2020-04-22 Thread Daniel Thompson
On Wed, Apr 22, 2020 at 09:51:14AM +0300, Tomi Valkeinen wrote: > The code that maps the LED default brightness to backlight levels has > two issues: 1) if the default brightness is the first backlight level > (usually 0), the code fails to find it, and 2) when the code fails to > find a backlight

[PATCHv3 4/4] backlight: led_bl: fix led -> backlight brightness mapping

2020-04-22 Thread Tomi Valkeinen
The code that maps the LED default brightness to backlight levels has two issues: 1) if the default brightness is the first backlight level (usually 0), the code fails to find it, and 2) when the code fails to find a backlight level, it ends up using max_brightness + 1 as the default brightness. F