]> 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>
Thu, 3 Jul 2014 11:15:55 +0000 (13:15 +0200)
commit6a9489deb06561243d02918fe147439e751281fc
treeccccf1e76e8d5237cde23251f207ce570ea1c416
parent9d3b3d31bcf0aa1a7b81f3c3bdcd9a2cbe902043
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