]> git.karo-electronics.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, 20 Aug 2014 08:08:19 +0000 (10:08 +0200)
commit7ca03941c385c159ef625da570c5951cf1782c13
tree4a5472b10014bc27147428c80aefbae5e8194e74
parent06254ded926083f494949b09e1d4af619ddfb2ea
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.
drivers/video/backlight/pwm_bl.c