From: Andy Shevchenko Date: Thu, 22 Oct 2020 16:58:47 +0000 (+0300) Subject: gpiolib: of: Use named item for enum gpiod_flags variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=40941954f6ce1d8b92a37fc35a28f83632deda8b;p=linux.git gpiolib: of: Use named item for enum gpiod_flags variable Use named item instead of plain integer for enum gpiod_flags to make it clear that even 0 has its own meaning. Cc: Mika Westerberg Signed-off-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 9b223520d24b7..b4a71119a4b07 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)