Re: [PATCH v3] backlight: pwm_bl: Fix uninitialized variable

2018-07-24 Thread Lee Jones
On Tue, 24 Jul 2018, Daniel Thompson wrote: > Currently, if the DT does not define num-interpolated-steps then > num_steps is undefined and the interpolation code will deploy randomly. > Fix with a simple initialize to zero. > > Fixes: 573fe6d1c25c ("backlight: pwm_bl: Linear interpolation

Re: [PATCH v3] backlight: pwm_bl: Fix uninitialized variable

2018-07-24 Thread Doug Anderson
Hi, On Tue, Jul 24, 2018 at 12:12 AM, Daniel Thompson wrote: > Currently, if the DT does not define num-interpolated-steps then > num_steps is undefined and the interpolation code will deploy randomly. > Fix with a simple initialize to zero. > > Fixes: 573fe6d1c25c ("backlight: pwm_bl: Linear

[PATCH v3] backlight: pwm_bl: Fix uninitialized variable

2018-07-24 Thread Daniel Thompson
Currently, if the DT does not define num-interpolated-steps then num_steps is undefined and the interpolation code will deploy randomly. Fix with a simple initialize to zero. Fixes: 573fe6d1c25c ("backlight: pwm_bl: Linear interpolation between brightness-levels") Reported-by: Marcel Ziswiler