mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-10 03:20:30 +01:00
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: 573fe6d1c2 ("backlight: pwm_bl: Linear interpolation between brightness-levels")
Reported-by: Marcel Ziswiler <[email protected]>
Signed-off-by: Daniel Thompson <[email protected]>
Tested-by: Marcel Ziswiler <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Signed-off-by: Lee Jones <[email protected]>