mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-05 05:15:23 +02:00
pinctrl: vt8500: drop the wrapper around pinctrl_gpio_direction_input()
pinctrl_gpio_direction_input() now has the same signature as the wrapper around it so we can drop them. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
54d9eab19e
commit
ffed728761
|
@ -526,11 +526,6 @@ static void wmt_gpio_set_value(struct gpio_chip *chip, unsigned offset,
|
||||||
wmt_clearbits(data, reg_data_out, BIT(bit));
|
wmt_clearbits(data, reg_data_out, BIT(bit));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int wmt_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
|
|
||||||
{
|
|
||||||
return pinctrl_gpio_direction_input(chip, offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int wmt_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
|
static int wmt_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
|
||||||
int value)
|
int value)
|
||||||
{
|
{
|
||||||
|
@ -544,7 +539,7 @@ static const struct gpio_chip wmt_gpio_chip = {
|
||||||
.request = gpiochip_generic_request,
|
.request = gpiochip_generic_request,
|
||||||
.free = gpiochip_generic_free,
|
.free = gpiochip_generic_free,
|
||||||
.get_direction = wmt_gpio_get_direction,
|
.get_direction = wmt_gpio_get_direction,
|
||||||
.direction_input = wmt_gpio_direction_input,
|
.direction_input = pinctrl_gpio_direction_input,
|
||||||
.direction_output = wmt_gpio_direction_output,
|
.direction_output = wmt_gpio_direction_output,
|
||||||
.get = wmt_gpio_get_value,
|
.get = wmt_gpio_get_value,
|
||||||
.set = wmt_gpio_set_value,
|
.set = wmt_gpio_set_value,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user