Skip to content

Commit 0b261df

Browse files
author
Bartosz Golaszewski
committed
pinctrl: starfive: jh7100: 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 653e95f commit 0b261df

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -916,16 +916,6 @@ static struct pinctrl_desc starfive_desc = {
916916
.custom_conf_items = starfive_pinconf_custom_conf_items,
917917
};
918918

919-
static int starfive_gpio_request(struct gpio_chip *gc, unsigned int gpio)
920-
{
921-
return pinctrl_gpio_request(gc, gpio);
922-
}
923-
924-
static void starfive_gpio_free(struct gpio_chip *gc, unsigned int gpio)
925-
{
926-
pinctrl_gpio_free(gc, gpio);
927-
}
928-
929919
static int starfive_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio)
930920
{
931921
struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc);
@@ -1309,8 +1299,8 @@ static int starfive_probe(struct platform_device *pdev)
13091299

13101300
sfp->gc.label = dev_name(dev);
13111301
sfp->gc.owner = THIS_MODULE;
1312-
sfp->gc.request = starfive_gpio_request;
1313-
sfp->gc.free = starfive_gpio_free;
1302+
sfp->gc.request = pinctrl_gpio_request;
1303+
sfp->gc.free = pinctrl_gpio_free;
13141304
sfp->gc.get_direction = starfive_gpio_get_direction;
13151305
sfp->gc.direction_input = starfive_gpio_direction_input;
13161306
sfp->gc.direction_output = starfive_gpio_direction_output;

0 commit comments

Comments
 (0)