linux-stable/drivers/video/backlight
Derek Basehore b04c22da18 backlight: pwm_bl: Fix overflow condition
[ Upstream commit 5d0c49aceb ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-25 14:26:24 +01:00
..
88pm860x_bl.c
aat2870_bl.c
adp5520_bl.c
adp8860_bl.c backlight: adp8860: Move header file out of I2C realm 2017-07-06 08:56:08 +01:00
adp8870_bl.c video: adp8870: move header file out of I2C realm 2017-07-06 08:58:39 +01:00
ams369fg06.c
apple_bl.c
arcxcnn_bl.c backlight: Add support for Arctic Sand LED backlight driver chips 2017-04-25 09:22:23 +01:00
as3711_bl.c
backlight.c backlight: Report error on failure 2017-05-30 09:27:53 +01:00
bd6107.c
corgi_lcd.c
cr_bllcd.c
da903x_bl.c
da9052_bl.c backlight: da9052: Fix module autoload 2017-01-04 11:37:58 +00:00
ep93xx_bl.c
generic_bl.c
gpio_backlight.c backlight: gpio_backlight: Delete pdata inversion 2017-08-07 17:11:28 +01:00
hp680_bl.c
hx8357.c
ili922x.c
ili9320.c
ili9320.h
ipaq_micro_bl.c
jornada720_bl.c
jornada720_lcd.c
kb3886_bl.c dmi: Mark all struct dmi_system_id instances const 2017-09-14 11:59:30 +02:00
Kconfig backlight: Add support for Arctic Sand LED backlight driver chips 2017-04-25 09:22:23 +01:00
l4f00242t03.c
lcd.c
ld9040.c
ld9040_gamma.h
lm3533_bl.c
lm3630a_bl.c backlight: lm3630a: Bump REG_MAX value to 0x50 instead of 0x1F 2017-07-17 13:27:06 +01:00
lm3639_bl.c
lms283gf05.c
lms501kf03.c
locomolcd.c
lp855x_bl.c
lp8788_bl.c
ltv350qv.c
ltv350qv.h
lv5207lp.c
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
max8925_bl.c
omap1_bl.c
ot200_bl.c
pandora_bl.c mfd: twl: Move header file out of I2C realm 2017-09-04 14:41:02 +01:00
pcf50633-backlight.c
platform_lcd.c
pm8941-wled.c
pwm_bl.c backlight: pwm_bl: Fix overflow condition 2017-12-25 14:26:24 +01:00
s6e63m0.c
s6e63m0_gamma.h
sky81452-backlight.c
tdo24m.c
tosa_bl.c
tosa_lcd.c
tps65217_bl.c
vgg2432a4.c
wm831x_bl.c