Skip to content

Commit

Permalink
pinctrl: starfive: jh7110: drop wrappers around pinctrl_gpio_request/…
Browse files Browse the repository at this point in the history
…free()

pinctrl_gpio_*() helpers now have signatures corresponding with those of
the GPIOLIB callbacks. We can drop the wrappers.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Bartosz Golaszewski committed Nov 4, 2023
1 parent 0b261df commit 895bf1d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,16 +545,6 @@ static const struct pinconf_ops jh7110_pinconf_ops = {
.is_generic = true,
};

static int jh7110_gpio_request(struct gpio_chip *gc, unsigned int gpio)
{
return pinctrl_gpio_request(gc, gpio);
}

static void jh7110_gpio_free(struct gpio_chip *gc, unsigned int gpio)
{
pinctrl_gpio_free(gc, gpio);
}

static int jh7110_gpio_get_direction(struct gpio_chip *gc,
unsigned int gpio)
{
Expand Down Expand Up @@ -940,8 +930,8 @@ int jh7110_pinctrl_probe(struct platform_device *pdev)

sfp->gc.label = dev_name(dev);
sfp->gc.owner = THIS_MODULE;
sfp->gc.request = jh7110_gpio_request;
sfp->gc.free = jh7110_gpio_free;
sfp->gc.request = pinctrl_gpio_request;
sfp->gc.free = pinctrl_gpio_free;
sfp->gc.get_direction = jh7110_gpio_get_direction;
sfp->gc.direction_input = jh7110_gpio_direction_input;
sfp->gc.direction_output = jh7110_gpio_direction_output;
Expand Down

0 comments on commit 895bf1d

Please sign in to comment.