leds: lp55xx: initialise output direction from dts
Commit
30b9aac4fd84 ("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: 30b9aac4fd84 ("leds: lp55xx: Initialize enable GPIO direction to output")
Fixes: 16ede27574ce ("leds: lp55xx: Add multicolor framework support to lp55xx")
Fixes: 45fd7d3412e0 ("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>