Skip to content

Commit 45d2055

Browse files
author
Bartosz Golaszewski
committed
pinctrl: remove pinctrl_gpio_direction_output()
There are no more users of pinctrl_gpio_direction_output() so remove it. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
1 parent aec9679 commit 45d2055

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

drivers/pinctrl/core.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -888,13 +888,6 @@ int pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset)
888888
}
889889
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input_new);
890890

891-
/* This function is deprecated and will be removed. Don't use. */
892-
int pinctrl_gpio_direction_output(unsigned gpio)
893-
{
894-
return pinctrl_gpio_direction(gpio, false);
895-
}
896-
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_output);
897-
898891
/**
899892
* pinctrl_gpio_direction_output_new() - request a GPIO pin to go into output
900893
* mode
@@ -907,7 +900,7 @@ EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_output);
907900
*/
908901
int pinctrl_gpio_direction_output_new(struct gpio_chip *gc, unsigned int offset)
909902
{
910-
return pinctrl_gpio_direction_output(gc->base + offset);
903+
return pinctrl_gpio_direction(gc->base + offset, false);
911904
}
912905
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_output_new);
913906

include/linux/pinctrl/consumer.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ int pinctrl_gpio_request_new(struct gpio_chip *gc, unsigned int offset);
3131
void pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset);
3232
int pinctrl_gpio_direction_input_new(struct gpio_chip *gc,
3333
unsigned int offset);
34-
int pinctrl_gpio_direction_output(unsigned gpio);
3534
int pinctrl_gpio_direction_output_new(struct gpio_chip *gc,
3635
unsigned int offset);
3736
int pinctrl_gpio_set_config(unsigned gpio, unsigned long config);
@@ -92,11 +91,6 @@ pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset)
9291
return 0;
9392
}
9493

95-
static inline int pinctrl_gpio_direction_output(unsigned gpio)
96-
{
97-
return 0;
98-
}
99-
10094
static inline int
10195
pinctrl_gpio_direction_output_new(struct gpio_chip *gc, unsigned int offset)
10296
{

0 commit comments

Comments
 (0)