]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pwm-backlight:
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 12 Jun 2014 11:38:54 +0000 (13:38 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 13 Aug 2014 09:17:45 +0000 (11:17 +0200)
commite85b510a965bc46774170c0f01be604bf840709f
treedd409fea62b985c06fa18d09754c39322467dc08
parent27c98cb8b1c961cce0d77cea839dd762f9fab5c9
pwm-backlight:

commit 257462dbf3ed 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>
drivers/video/backlight/pwm_bl.c