diff mbox series

[v1,3/3] gpiolib: of: Use named item for enum gpiod_flags variable

Message ID 20201014133154.30610-3-andriy.shevchenko@linux.intel.com
State Accepted
Commit 40941954f6ce1d8b92a37fc35a28f83632deda8b
Headers show
Series [v1,1/3] gpiolib: acpi: Respect bias settings for GpioInt() resource | expand

Commit Message

Andy Shevchenko Oct. 14, 2020, 1:31 p.m. UTC
Use named item instead of plain integer for enum gpiod_flags
to make it clear that even 0 has its own meaning.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/gpio/gpiolib-of.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index 2f895a2b8411..892a513b7a64 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -593,7 +593,7 @@  static struct gpio_desc *of_parse_own_gpio(struct device_node *np,
 
 	xlate_flags = 0;
 	*lflags = GPIO_LOOKUP_FLAGS_DEFAULT;
-	*dflags = 0;
+	*dflags = GPIOD_ASIS;
 
 	ret = of_property_read_u32(chip_np, "#gpio-cells", &tmp);
 	if (ret)