summaryrefslogtreecommitdiff
path: root/drivers/video/backlight/ili922x.c
diff options
context:
space:
mode:
authorDerek Basehore <dbasehore@chromium.org>2017-08-29 23:34:34 +0300
committerLee Jones <lee.jones@linaro.org>2017-10-13 12:41:20 +0300
commit5d0c49acebc9488e37db95f1d4a55644e545ffe7 (patch)
tree569883e84e757a23fcde534201fdd09b332be937 /drivers/video/backlight/ili922x.c
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff)
downloadlinux-5d0c49acebc9488e37db95f1d4a55644e545ffe7.tar.xz
backlight: pwm_bl: Fix overflow condition
This fixes an overflow condition that can happen with high max brightness and period values in compute_duty_cycle. This fixes it by using a 64 bit variable for computing the duty cycle. Signed-off-by: Derek Basehore <dbasehore@chromium.org> Acked-by: Thierry Reding <thierry.reding@gmail.com> Reviewed-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video/backlight/ili922x.c')
0 files changed, 0 insertions, 0 deletions