mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
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>
This commit is contained in:
parent
1d2c88450f
commit
aec96797f9
2 changed files with 1 additions and 14 deletions
|
@ -873,13 +873,6 @@ static int pinctrl_gpio_direction(unsigned gpio, bool input)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* This function is deprecated and will be removed. Don't use. */
|
||||
int pinctrl_gpio_direction_input(unsigned gpio)
|
||||
{
|
||||
return pinctrl_gpio_direction(gpio, true);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input);
|
||||
|
||||
/**
|
||||
* pinctrl_gpio_direction_input_new() - request a GPIO pin to go into input mode
|
||||
* @gc: GPIO chip structure from the GPIO subsystem
|
||||
|
@ -891,7 +884,7 @@ EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input);
|
|||
*/
|
||||
int pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset)
|
||||
{
|
||||
return pinctrl_gpio_direction_input(gc->base + offset);
|
||||
return pinctrl_gpio_direction(gc->base + offset, true);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input_new);
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ struct pinctrl_state;
|
|||
bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset);
|
||||
int pinctrl_gpio_request_new(struct gpio_chip *gc, unsigned int offset);
|
||||
void pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset);
|
||||
int pinctrl_gpio_direction_input(unsigned gpio);
|
||||
int pinctrl_gpio_direction_input_new(struct gpio_chip *gc,
|
||||
unsigned int offset);
|
||||
int pinctrl_gpio_direction_output(unsigned gpio);
|
||||
|
@ -87,11 +86,6 @@ pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset)
|
|||
{
|
||||
}
|
||||
|
||||
static inline int pinctrl_gpio_direction_input(unsigned gpio)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int
|
||||
pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue