Skip to content

Commit aec9679

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

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
@@ -873,13 +873,6 @@ static int pinctrl_gpio_direction(unsigned gpio, bool input)
873873
return ret;
874874
}
875875

876-
/* This function is deprecated and will be removed. Don't use. */
877-
int pinctrl_gpio_direction_input(unsigned gpio)
878-
{
879-
return pinctrl_gpio_direction(gpio, true);
880-
}
881-
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input);
882-
883876
/**
884877
* pinctrl_gpio_direction_input_new() - request a GPIO pin to go into input mode
885878
* @gc: GPIO chip structure from the GPIO subsystem
@@ -891,7 +884,7 @@ EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input);
891884
*/
892885
int pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset)
893886
{
894-
return pinctrl_gpio_direction_input(gc->base + offset);
887+
return pinctrl_gpio_direction(gc->base + offset, true);
895888
}
896889
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input_new);
897890

include/linux/pinctrl/consumer.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ struct pinctrl_state;
2929
bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset);
3030
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);
32-
int pinctrl_gpio_direction_input(unsigned gpio);
3332
int pinctrl_gpio_direction_input_new(struct gpio_chip *gc,
3433
unsigned int offset);
3534
int pinctrl_gpio_direction_output(unsigned gpio);
@@ -87,11 +86,6 @@ pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset)
8786
{
8887
}
8988

90-
static inline int pinctrl_gpio_direction_input(unsigned gpio)
91-
{
92-
return 0;
93-
}
94-
9589
static inline int
9690
pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset)
9791
{

0 commit comments

Comments
 (0)