Skip to content

Commit 895bf1d

Browse files
author
Bartosz Golaszewski
committed
pinctrl: starfive: jh7110: drop wrappers around pinctrl_gpio_request/free()
pinctrl_gpio_*() helpers now have signatures corresponding with those of the GPIOLIB callbacks. We can drop the wrappers. Signed-off-by: Bartosz Golaszewski <[email protected]> Acked-by: Linus Walleij <[email protected]>
1 parent 0b261df commit 895bf1d

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -545,16 +545,6 @@ static const struct pinconf_ops jh7110_pinconf_ops = {
545545
.is_generic = true,
546546
};
547547

548-
static int jh7110_gpio_request(struct gpio_chip *gc, unsigned int gpio)
549-
{
550-
return pinctrl_gpio_request(gc, gpio);
551-
}
552-
553-
static void jh7110_gpio_free(struct gpio_chip *gc, unsigned int gpio)
554-
{
555-
pinctrl_gpio_free(gc, gpio);
556-
}
557-
558548
static int jh7110_gpio_get_direction(struct gpio_chip *gc,
559549
unsigned int gpio)
560550
{
@@ -940,8 +930,8 @@ int jh7110_pinctrl_probe(struct platform_device *pdev)
940930

941931
sfp->gc.label = dev_name(dev);
942932
sfp->gc.owner = THIS_MODULE;
943-
sfp->gc.request = jh7110_gpio_request;
944-
sfp->gc.free = jh7110_gpio_free;
933+
sfp->gc.request = pinctrl_gpio_request;
934+
sfp->gc.free = pinctrl_gpio_free;
945935
sfp->gc.get_direction = jh7110_gpio_get_direction;
946936
sfp->gc.direction_input = jh7110_gpio_direction_input;
947937
sfp->gc.direction_output = jh7110_gpio_direction_output;

0 commit comments

Comments
 (0)