pinctrl/gpio: Unify namespace for cross-calls
The pinctrl_request_gpio() and pinctrl_free_gpio() break the nice namespacing in the other cross-calls like pinctrl_gpio_foo(). Just rename them and all references so we have one namespace with all cross-calls under pinctrl_gpio_*(). Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
@@ -311,7 +311,7 @@ static int iproc_gpio_request(struct gpio_chip *gc, unsigned offset)
|
||||
if (!chip->pinmux_is_supported)
|
||||
return 0;
|
||||
|
||||
return pinctrl_request_gpio(gpio);
|
||||
return pinctrl_gpio_request(gpio);
|
||||
}
|
||||
|
||||
static void iproc_gpio_free(struct gpio_chip *gc, unsigned offset)
|
||||
@@ -322,7 +322,7 @@ static void iproc_gpio_free(struct gpio_chip *gc, unsigned offset)
|
||||
if (!chip->pinmux_is_supported)
|
||||
return;
|
||||
|
||||
pinctrl_free_gpio(gpio);
|
||||
pinctrl_gpio_free(gpio);
|
||||
}
|
||||
|
||||
static int iproc_gpio_direction_input(struct gpio_chip *gc, unsigned gpio)
|
||||
|
Reference in New Issue
Block a user