You need to sign in or sign up before continuing.
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: NDerek Basehore <dbasehore@chromium.org> Acked-by: NThierry Reding <thierry.reding@gmail.com> Reviewed-by: NBrian Norris <briannorris@chromium.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
Showing
想要评论请 注册 或 登录