summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2018-07-25 10:38:30 +0300
committerLee Jones <lee.jones@linaro.org>2018-07-25 11:09:59 +0300
commit633786736ed53a53b8d0a630cc3ff57381027081 (patch)
tree823842fd94484802c4965fa12ac9a057bd7cdb2f /mm
parent858c5dfc8c336ca26b8d4d9f639a9dc40c5daa80 (diff)
downloadlinux-633786736ed53a53b8d0a630cc3ff57381027081.tar.xz
backlight: pwm_bl: Fix uninitialized variable
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 <marcel.ziswiler@toradex.com> Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions