alistair23-linux/drivers/video/backlight
Heiko Stuebner 61170ee938 backlight: pwm_bl: Fix devicetree parsing with auto-generated brightness tables
Commit 88ba95bedb ("backlight: pwm_bl: Compute brightness of LED linearly
to human eye") made the parse-dt function return early when using an auto-
generated brightness-table, but didn't take into account that some more
settings were handled below the brightness handling, like power-on-delays
and also setting the pdata enable-gpio to -EINVAL.

This surfaces for example in the case of a backlight without any
enable-gpio which then tries to use gpio-0 in error.

Fix this by simply moving the trailing settings above the brightness
handling.

Fixes: 88ba95bedb ("backlight: pwm_bl: Compute brightness of LED linearly to human eye")
Signed-off-by: Heiko Stuebner <heiko.stuebner@bq.com>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2018-11-27 12:16:41 +00:00
..
88pm860x_bl.c
aat2870_bl.c
adp5520_bl.c backlight: Update MODULE AUTHOR email address 2018-09-10 15:54:24 +01:00
adp8860_bl.c backlight: Update MODULE AUTHOR email address 2018-09-10 15:54:24 +01:00
adp8870_bl.c backlight: Update MODULE AUTHOR email address 2018-09-10 15:54:24 +01:00
ams369fg06.c
apple_bl.c backlight: apple_bl: Deprecate pci_get_bus_and_slot() 2017-12-20 13:47:05 +00:00
arcxcnn_bl.c
as3711_bl.c media: backlight: as3711_bl: convert to SPDX identifiers 2018-09-12 09:31:24 -04:00
backlight.c video: backlight: Add devres versions of of_find_backlight 2018-01-29 10:34:53 -05:00
bd6107.c
corgi_lcd.c backlight: tdo24m: Fix the SPI CS between transfers 2018-01-08 09:21:57 +00:00
cr_bllcd.c
da903x_bl.c
da9052_bl.c
ep93xx_bl.c
generic_bl.c backlight: generic-bl: Remove DRIVER1 state 2018-04-30 13:25:14 +01:00
gpio_backlight.c
hp680_bl.c
hx8357.c
ili922x.c backlight: ili922x: Remove redundant variable len 2017-11-08 10:43:49 +00:00
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: Remove ld9040 driver 2018-10-09 02:59:20 -07:00
l4f00242t03.c
lcd.c
lm3533_bl.c
lm3630a_bl.c
lm3639_bl.c backlight: lm3639: Unconditionally call led_classdev_unregister 2018-10-09 02:58:59 -07:00
lms283gf05.c
lms501kf03.c
locomolcd.c
lp855x_bl.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
lp8788_bl.c
ltv350qv.c
ltv350qv.h
lv5207lp.c
Makefile backlight: Remove ld9040 driver 2018-10-09 02:59:20 -07:00
max8925_bl.c backlight: max8925_bl: Fix Device Tree node lookup 2018-06-11 13:40:32 +01:00
omap1_bl.c
ot200_bl.c
otm3225a.c backlight: otm3225a: Add support for ORISE OTM3225A LCD SoC 2018-04-30 10:50:44 +01:00
pandora_bl.c backlight: pandora: Stop using BL_CORE_DRIVER1 2018-04-30 13:25:14 +01:00
pcf50633-backlight.c
platform_lcd.c
pm8941-wled.c
pwm_bl.c backlight: pwm_bl: Fix devicetree parsing with auto-generated brightness tables 2018-11-27 12:16:41 +00:00
rave-sp-backlight.c backlight: Add RAVE SP backlight driver 2018-04-30 10:50:43 +01:00
sky81452-backlight.c
tdo24m.c backlight: tdo24m: Fix the SPI CS between transfers 2018-01-08 09:21:57 +00:00
tosa_bl.c
tosa_lcd.c backlight: tdo24m: Fix the SPI CS between transfers 2018-01-08 09:21:57 +00:00
tps65217_bl.c backlight: tps65217_bl: Fix Device Tree node lookup 2018-06-11 13:40:39 +01:00
vgg2432a4.c
wm831x_bl.c