summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-11-04 10:34:24 +0100
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-11-09 14:55:33 +0100
commitfffb9fff12250018a6f4d3e411f9d289210da329 (patch)
tree22a6f25e5dd929bd49eda9bc40d52154531e7420 /drivers/gpio
parentUSB: gadget: pxa27x_udc: Avoid using GPIOF_ACTIVE_LOW (diff)
downloadlinux-fffb9fff12250018a6f4d3e411f9d289210da329.tar.xz
linux-fffb9fff12250018a6f4d3e411f9d289210da329.zip
gpio: Get rid of GPIOF_ACTIVE_LOW
No more users. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20241104093609.156059-7-andriy.shevchenko@linux.intel.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib-legacy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpio/gpiolib-legacy.c b/drivers/gpio/gpiolib-legacy.c
index 28f1046fb670..aeae6df8bec9 100644
--- a/drivers/gpio/gpiolib-legacy.c
+++ b/drivers/gpio/gpiolib-legacy.c
@@ -46,9 +46,6 @@ int gpio_request_one(unsigned gpio, unsigned long flags, const char *label)
if (err)
return err;
- if (flags & GPIOF_ACTIVE_LOW)
- set_bit(FLAG_ACTIVE_LOW, &desc->flags);
-
if (flags & GPIOF_IN)
err = gpiod_direction_input(desc);
else