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, 15 Dec 2021 20:32:01 +0000 (21:32 +0100)
commitd949edb503b13a0f05e5931d2340d9e4cfdef264
tree04a9a893442696767827561618171abd840c8bbd
parentcca4717422ce435a27f25562aef0c5091a88ece4
leds: lp55xx: initialise output direction from dts

Commit a5d3d1adc95f ("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: a5d3d1adc95f ("leds: lp55xx: Initialize enable GPIO direction to output")
Fixes: 92a81562e695 ("leds: lp55xx: Add multicolor framework support to lp55xx")
Fixes: ac219bf3c9bd ("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