Skip to content

Commit de38bdb

Browse files
author
Bartosz Golaszewski
committed
pinctrl: nuvoton: npcm7xx: 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 b04ce10 commit de38bdb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,6 @@ static int npcmgpio_gpio_request(struct gpio_chip *chip, unsigned int offset)
208208
return bank->request(chip, offset);
209209
}
210210

211-
static void npcmgpio_gpio_free(struct gpio_chip *chip, unsigned int offset)
212-
{
213-
dev_dbg(chip->parent, "gpio_free: offset%d\n", offset);
214-
pinctrl_gpio_free(chip, offset);
215-
}
216-
217211
static void npcmgpio_irq_handler(struct irq_desc *desc)
218212
{
219213
struct gpio_chip *gc;
@@ -1916,7 +1910,7 @@ static int npcm7xx_gpio_of(struct npcm7xx_pinctrl *pctrl)
19161910
pctrl->gpio_bank[id].gc.direction_output = npcmgpio_direction_output;
19171911
pctrl->gpio_bank[id].request = pctrl->gpio_bank[id].gc.request;
19181912
pctrl->gpio_bank[id].gc.request = npcmgpio_gpio_request;
1919-
pctrl->gpio_bank[id].gc.free = npcmgpio_gpio_free;
1913+
pctrl->gpio_bank[id].gc.free = pinctrl_gpio_free;
19201914
id++;
19211915
}
19221916

0 commit comments

Comments
 (0)