diff options
author | Jilin Yuan <yuanjilin@cdjrlc.com> | 2022-08-25 15:41:34 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-08-26 16:46:20 +0300 |
commit | 1ebfe7e36182a658819e4ded44d38d4033c8bbfb (patch) | |
tree | 96e2b61bddda5d5d34887c59f138909f3702cf25 /drivers/pinctrl/nuvoton | |
parent | 9194e0f88a74d98f98b33183e6dda87c3753dd71 (diff) | |
download | linux-1ebfe7e36182a658819e4ded44d38d4033c8bbfb.tar.xz |
pinctrl: nuvoton: Use 'unsigned int' instead of just 'unsigned'.
'unsigned int' should be clearer than 'unsigned'.
Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
Link: https://lore.kernel.org/r/20220825124134.30242-1-yuanjilin@cdjrlc.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/nuvoton')
-rw-r--r-- | drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c index 64d8a568b3db..1c4e89b046de 100644 --- a/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c +++ b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c @@ -81,11 +81,11 @@ struct npcm7xx_gpio { int irq; struct irq_chip irq_chip; u32 pinctrl_id; - int (*direction_input)(struct gpio_chip *chip, unsigned offset); - int (*direction_output)(struct gpio_chip *chip, unsigned offset, + int (*direction_input)(struct gpio_chip *chip, unsigned int offset); + int (*direction_output)(struct gpio_chip *chip, unsigned int offset, int value); - int (*request)(struct gpio_chip *chip, unsigned offset); - void (*free)(struct gpio_chip *chip, unsigned offset); + int (*request)(struct gpio_chip *chip, unsigned int offset); + void (*free)(struct gpio_chip *chip, unsigned int offset); }; struct npcm7xx_pinctrl { |