linux/drivers/video/backlight
Lothar Waßmann 937222c4dd pwm-backlight: Fix bogus request for GPIO#0 when instantiated from DT
commit 257462dbf3 ("pwm-backlight: switch to gpiod interface")
introduced a regression leading to acquiring a bogus GPIO-0 when
configured from DT without an 'enable-gpios' property.
The driver will happily accept the 0 initialized 'enable_gpio' member
of the struct platform_pwm_backlight_data as valid gpio number, and
request this GPIO as enable pin. In case of multiple driver instances,
the second will fail to register with the error message:
pwm-backlight backlight1.23: failed to request GPIO#0: -16

Fix this by setting enable_gpio in the pdata struct to -EINVAL.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2014-08-20 13:23:00 +01:00
..
88pm860x_bl.c backlight: 88pm860x_bl: use devm_backlight_device_register() 2013-11-13 12:09:16 +09:00
aat2870_bl.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
adp5520_bl.c backlight: adp5520: use devm_backlight_device_register() 2013-11-13 12:09:16 +09:00
adp8860_bl.c backlight: adp8860: remove unnecessary OOM messages 2014-04-03 16:21:10 -07:00
adp8870_bl.c backlight: adp8870: remove unnecessary OOM messages 2014-04-03 16:21:10 -07:00
ams369fg06.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
apple_bl.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
as3711_bl.c backlight: as3711_bl: use devm_backlight_device_register() 2013-11-13 12:09:16 +09:00
backlight.c backlight: Show brightness even if get_brightness is not implemented 2014-06-23 13:26:02 +01:00
bd6107.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
corgi_lcd.c backlight: corgi_lcd: remove unnecessary OOM messages 2014-04-03 16:21:10 -07:00
cr_bllcd.c backlight: cr_bllcd: use devm_{backlight,lcd}_device_register() 2013-11-13 12:09:20 +09:00
da903x_bl.c backlight: da903x_bl: use devm_backlight_device_register() 2013-11-13 12:09:17 +09:00
da9052_bl.c backlight: da9052_bl: use devm_backlight_device_register() 2013-11-13 12:09:17 +09:00
ep93xx_bl.c backlight: ep93xx: use devm_backlight_device_register() 2013-11-13 12:09:17 +09:00
generic_bl.c backlight: generic_bl: use devm_backlight_device_register() 2013-11-13 12:09:17 +09:00
gpio_backlight.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
hp680_bl.c backlight: hp680_bl: use devm_backlight_device_register() 2014-01-23 16:36:56 -08:00
hx8357.c backlight: hx8357: remove unnecessary OOM messages 2014-04-03 16:21:10 -07:00
ili922x.c backlight: ili922x: remove unnecessary OOM messages 2014-04-03 16:21:10 -07:00
ili9320.c backlight: ili9320: remove unnecessary OOM messages 2014-04-03 16:21:10 -07:00
ili9320.h backlight: vgg2432a4: convert vgg2432a4_driver to dev_pm_ops 2013-04-29 18:28:18 -07:00
ipaq_micro_bl.c backlight: ipaq_micro: Fix sparse non static symbol warning 2014-07-31 10:31:22 +01:00
jornada720_bl.c backlight: jornada720: use devm_backlight_device_register() 2014-01-23 16:36:56 -08:00
jornada720_lcd.c backlight: jornada720: Minimise code duplication and handle errors better 2014-07-18 08:39:42 +01:00
kb3886_bl.c backlight: kb3886_bl: fix incorrect placement of __initdata marker 2014-01-23 16:36:57 -08:00
Kconfig ARM: SoC driver changes for 3.17 2014-08-08 11:34:32 -07:00
l4f00242t03.c backlight: l4f00242t03: remove unnecessary OOM messages 2014-04-03 16:21:11 -07:00
lcd.c drivers/video/backlight/lcd.c: call put_device if device_register fails 2014-01-30 16:56:54 -08:00
ld9040_gamma.h backlight: ld9040: Staticize local variable gamma_table 2013-11-13 12:09:15 +09:00
ld9040.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
lm3533_bl.c backlight: lm3533_bl: remove unnecessary OOM messages 2014-04-03 16:21:11 -07:00
lm3630a_bl.c drivers/video/backlight/lm3630a_bl.c: add missing destroy_workqueue() on error in lm3630a_intr_config() 2013-11-13 12:09:20 +09:00
lm3639_bl.c backlight: lm3639: Use devm_backlight_device_register() 2014-04-08 13:20:41 +01:00
lms283gf05.c backlight: lms283gf05: remove unnecessary OOM messages 2014-04-03 16:21:11 -07:00
lms501kf03.c backlight: lms501kf03: use devm_lcd_device_register() 2013-11-13 12:09:19 +09:00
locomolcd.c backlight: locomolcd: convert locomolcd to dev_pm_ops 2013-04-29 18:28:16 -07:00
lp855x_bl.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
lp8788_bl.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
ltv350qv.c backlight: ltv350qv: use devm_lcd_device_register() 2013-11-13 12:09:19 +09:00
ltv350qv.h
lv5207lp.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
Makefile ARM: SoC driver changes for 3.17 2014-08-08 11:34:32 -07:00
max8925_bl.c backlight: max8925_bl: use devm_backlight_device_register() 2013-11-13 12:09:18 +09:00
omap1_bl.c backlight: omap1: use devm_backlight_device_register() 2014-01-23 16:36:56 -08:00
ot200_bl.c backlight: ot200_bl: use devm_backlight_device_register() 2014-01-23 16:36:56 -08:00
pandora_bl.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
pcf50633-backlight.c backlight: pcf50633: use devm_backlight_device_register() 2013-11-13 12:09:18 +09:00
platform_lcd.c backlight: platform_lcd: remove unnecessary OOM messages 2014-04-03 16:21:11 -07:00
pwm_bl.c pwm-backlight: Fix bogus request for GPIO#0 when instantiated from DT 2014-08-20 13:23:00 +01:00
s6e63m0_gamma.h
s6e63m0.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
tdo24m.c backlight: tdo24m: use devm_lcd_device_register() 2013-11-13 12:09:20 +09:00
tosa_bl.c backlight: tosa: use devm_backlight_device_register() 2014-01-23 16:36:56 -08:00
tosa_lcd.c backlight: tosa: use devm_lcd_device_register() 2014-01-23 16:36:57 -08:00
tps65217_bl.c backlight: Remove trivial get_brightness implementations 2014-06-23 13:24:22 +01:00
vgg2432a4.c backlight: vgg2432a4: convert vgg2432a4_driver to dev_pm_ops 2013-04-29 18:28:18 -07:00
wm831x_bl.c backlight: wm831x_bl: use devm_backlight_device_register() 2013-11-13 12:09:18 +09:00