diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-10-22 19:58:47 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-10-26 15:35:55 +0100 |
commit | 40941954f6ce1d8b92a37fc35a28f83632deda8b (patch) | |
tree | 1b9b7c1e53599c8b9be6a0d2f714d02decb58246 /drivers/gpio | |
parent | 3ffb7c45d193c771d7fc7722be0a45bc196f25f9 (diff) | |
download | linux-40941954f6ce1d8b92a37fc35a28f83632deda8b.tar.gz linux-40941954f6ce1d8b92a37fc35a28f83632deda8b.tar.bz2 linux-40941954f6ce1d8b92a37fc35a28f83632deda8b.zip |
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 <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpiolib-of.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 9b223520d24b..b4a71119a4b0 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) |