diff options
author | Derek Basehore <dbasehore@chromium.org> | 2017-08-29 23:34:34 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-10-13 12:41:20 +0300 |
commit | 5d0c49acebc9488e37db95f1d4a55644e545ffe7 (patch) | |
tree | 569883e84e757a23fcde534201fdd09b332be937 /drivers/video/backlight/ili922x.c | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) | |
download | linux-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