Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: lp55xx: Initialize enable GPIO direction to output

The "Convert to use GPIO descriptors" commit changed the
initialization of the enable GPIO from GPIOF_DIR_OUT to
GPIOD_ASIS. This breaks systems where the GPIO does not
default to output. Changing the enable initialization
to GPIOD_OUT_LOW.

Signed-off-by: Doug Zobel <dougdev334@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>

authored by

Doug Zobel and committed by
Pavel Machek
a5d3d1ad e90abb95

+1 -1
+1 -1
drivers/leds/leds-lp55xx-common.c
··· 694 694 of_property_read_u8(np, "clock-mode", &pdata->clock_mode); 695 695 696 696 pdata->enable_gpiod = devm_gpiod_get_optional(dev, "enable", 697 - GPIOD_ASIS); 697 + GPIOD_OUT_LOW); 698 698 if (IS_ERR(pdata->enable_gpiod)) 699 699 return ERR_CAST(pdata->enable_gpiod); 700 700