Skip to content

Commit fffb9ff

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpio: Get rid of GPIOF_ACTIVE_LOW
No more users. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 62d2a94 commit fffb9ff

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

drivers/gpio/gpiolib-legacy.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ int gpio_request_one(unsigned gpio, unsigned long flags, const char *label)
4646
if (err)
4747
return err;
4848

49-
if (flags & GPIOF_ACTIVE_LOW)
50-
set_bit(FLAG_ACTIVE_LOW, &desc->flags);
51-
5249
if (flags & GPIOF_IN)
5350
err = gpiod_direction_input(desc);
5451
else

include/linux/gpio.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ struct device;
2121
#define GPIOF_OUT_INIT_LOW ((0 << 0) | (0 << 1))
2222
#define GPIOF_OUT_INIT_HIGH ((0 << 0) | (1 << 1))
2323

24-
/* Gpio pin is active-low */
25-
#define GPIOF_ACTIVE_LOW (1 << 2)
26-
2724
/**
2825
* struct gpio - a structure describing a GPIO with configuration
2926
* @gpio: the GPIO number

0 commit comments

Comments
 (0)