commit | 5d0c49acebc9488e37db95f1d4a55644e545ffe7 | [log] [tgz] |
---|---|---|
author | Derek Basehore <dbasehore@chromium.org> | Tue Aug 29 13:34:34 2017 -0700 |
committer | Lee Jones <lee.jones@linaro.org> | Fri Oct 13 10:41:20 2017 +0100 |
tree | 569883e84e757a23fcde534201fdd09b332be937 | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e [diff] |
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>