Skip to content

Commit d35e579

Browse files
author
Bartosz Golaszewski
committed
pinctrl: cirrus: 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 <[email protected]> Acked-by: Linus Walleij <[email protected]>
1 parent c1649a7 commit d35e579

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/pinctrl/cirrus/pinctrl-cs42l43.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -506,11 +506,6 @@ static void cs42l43_gpio_set(struct gpio_chip *chip, unsigned int offset, int va
506506
pm_runtime_put(priv->dev);
507507
}
508508

509-
static int cs42l43_gpio_direction_in(struct gpio_chip *chip, unsigned int offset)
510-
{
511-
return pinctrl_gpio_direction_input(chip, offset);
512-
}
513-
514509
static int cs42l43_gpio_direction_out(struct gpio_chip *chip,
515510
unsigned int offset, int value)
516511
{
@@ -551,7 +546,7 @@ static int cs42l43_pin_probe(struct platform_device *pdev)
551546

552547
priv->gpio_chip.request = gpiochip_generic_request;
553548
priv->gpio_chip.free = gpiochip_generic_free;
554-
priv->gpio_chip.direction_input = cs42l43_gpio_direction_in;
549+
priv->gpio_chip.direction_input = pinctrl_gpio_direction_input;
555550
priv->gpio_chip.direction_output = cs42l43_gpio_direction_out;
556551
priv->gpio_chip.add_pin_ranges = cs42l43_gpio_add_pin_ranges;
557552
priv->gpio_chip.get = cs42l43_gpio_get;

0 commit comments

Comments
 (0)