[PATCH] pinctrl/nuvoton: Use 'unsigned int' instead of just 'unsigned'.

Subsystems: arm/nuvoton npcm architecture, pin control subsystem, the rest

STALE1507d LANDED

Landed in mainline as 1ebfe7e36182 on 2022-08-26.

2 messages, 2 authors, 2022-08-26 · open the first message on its own page

[PATCH] pinctrl/nuvoton: Use 'unsigned int' instead of just 'unsigned'.

From: Jilin Yuan <hidden>
Date: 2022-08-25 12:42:07

'unsigned int' should be clearer than 'unsigned'.

Signed-off-by: Jilin Yuan <redacted>
---
 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 8 ++++----
 1 file 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 {
-- 
2.36.1

Re: [PATCH] pinctrl/nuvoton: Use 'unsigned int' instead of just 'unsigned'.

From: Linus Walleij <hidden>
Date: 2022-08-26 13:47:14

On Thu, Aug 25, 2022 at 2:41 PM Jilin Yuan [off-list ref] wrote:
'unsigned int' should be clearer than 'unsigned'.

Signed-off-by: Jilin Yuan <redacted>
Patch applied.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help