]> git.baikalelectronics.ru Git - kernel.git/commit
leds: lp55xx: initialise output direction from dts
authorMerlijn Wajer <merlijn@wizzup.org>
Sun, 12 Dec 2021 22:40:07 +0000 (23:40 +0100)
committerPavel Machek <pavel@ucw.cz>
Wed, 12 Jan 2022 18:43:15 +0000 (19:43 +0100)
commit90818db3cac9fb105a84e129e8882a39d96e5418
tree04a9a893442696767827561618171abd840c8bbd
parentefbfc9302e11187ebba4cb9c421a33d597605029
leds: lp55xx: initialise output direction from dts

Commit d7e5fbef05dc ("leds: lp55xx: Initialize enable GPIO direction to
output") attempts to fix this, but the fix did not work since at least
for the Nokia N900 the value needs to be set to HIGH, per the device
tree. So rather than hardcoding the value to a potentially invalid value
for some devices, let's set direction in lp55xx_init_device.

Fixes: d7e5fbef05dc ("leds: lp55xx: Initialize enable GPIO direction to output")
Fixes: 8ffa6b5f3006 ("leds: lp55xx: Add multicolor framework support to lp55xx")
Fixes: 5d5d29fc493d ("leds: lp55xx: Convert to use GPIO descriptors")
Signed-off-by: Merlijn Wajer <merlijn@wizzup.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lp55xx-common.c