Re: [PATCH] backlight: pwm_bl: Fix heuristic to determine number of brightness levels

2019-06-21 Thread Daniel Thompson
On 12/06/2019 19:00, Matthias Kaehlcke wrote: With commit 88ba95bedb79 ("backlight: pwm_bl: Compute brightness of LED linearly to human eye") the number of set bits (aka hweight()) in the PWM period is used in the heuristic to determine the number of brightness levels, when the brightness table i

Re: [PATCH] backlight: pwm_bl: Fix heuristic to determine number of brightness levels

2019-06-13 Thread Enric Balletbo i Serra
Hi Matthias, On 12/6/19 20:00, Matthias Kaehlcke wrote: > With commit 88ba95bedb79 ("backlight: pwm_bl: Compute brightness of > LED linearly to human eye") the number of set bits (aka hweight()) > in the PWM period is used in the heuristic to determine the number > of brightness levels, when the b

Re: [PATCH] backlight: pwm_bl: Fix heuristic to determine number of brightness levels

2019-06-13 Thread Matthias Kaehlcke
On Thu, Jun 13, 2019 at 11:14:55AM +0200, Enric Balletbo i Serra wrote: > Hi Matthias, > > On 12/6/19 20:00, Matthias Kaehlcke wrote: > > With commit 88ba95bedb79 ("backlight: pwm_bl: Compute brightness of > > LED linearly to human eye") the number of set bits (aka hweight()) > > in the PWM period

[PATCH] backlight: pwm_bl: Fix heuristic to determine number of brightness levels

2019-06-12 Thread Matthias Kaehlcke
With commit 88ba95bedb79 ("backlight: pwm_bl: Compute brightness of LED linearly to human eye") the number of set bits (aka hweight()) in the PWM period is used in the heuristic to determine the number of brightness levels, when the brightness table isn't specified in the DT. The number of set bits