@@ -2714,17 +2714,6 @@ int gpiod_is_active_low(const struct gpio_desc *desc)
}
EXPORT_SYMBOL_GPL(gpiod_is_active_low);
-/**
- * gpiod_toggle_active_low - toggle whether a GPIO is active-low or not
- * @desc: the gpio descriptor to change
- */
-void gpiod_toggle_active_low(struct gpio_desc *desc)
-{
- VALIDATE_DESC_VOID(desc);
- change_bit(FLAG_ACTIVE_LOW, &desc->flags);
-}
-EXPORT_SYMBOL_GPL(gpiod_toggle_active_low);
-
/**
* gpiod_set_active_low() - set the GPIO as active-low
* @desc: the GPIO descriptor to set the active-low setting for
@@ -159,7 +159,6 @@ int gpiod_set_raw_array_value_cansleep(unsigned int array_size,
int gpiod_set_config(struct gpio_desc *desc, unsigned long config);
int gpiod_set_debounce(struct gpio_desc *desc, unsigned int debounce);
-void gpiod_toggle_active_low(struct gpio_desc *desc);
void gpiod_set_active_low(struct gpio_desc *desc);
void gpiod_set_active_high(struct gpio_desc *desc);
@@ -495,12 +494,6 @@ static inline int gpiod_set_debounce(struct gpio_desc *desc, unsigned int deboun
return -ENOSYS;
}
-static inline void gpiod_toggle_active_low(struct gpio_desc *desc)
-{
- /* GPIO can never have been requested */
- WARN_ON(desc);
-}
-
static inline void gpiod_set_active_low(struct gpio_desc *desc
{
/* GPIO can never have been requested */