Skip to content

Commit 0c106a2

Browse files
Abanoub8andy-shev
authored andcommitted
gpio: pch: changed every 'unsigned' to 'unsigned int'
Changed 'unsigned' to 'unsigned int'. This makes the code more uniform, and compliant with the kernel coding style. Signed-off-by: Abanoub Sameh <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 532e762 commit 0c106a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpio/gpio-pch.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ struct pch_gpio {
9595
spinlock_t spinlock;
9696
};
9797

98-
static void pch_gpio_set(struct gpio_chip *gpio, unsigned nr, int val)
98+
static void pch_gpio_set(struct gpio_chip *gpio, unsigned int nr, int val)
9999
{
100100
u32 reg_val;
101101
struct pch_gpio *chip = gpiochip_get_data(gpio);
@@ -112,14 +112,14 @@ static void pch_gpio_set(struct gpio_chip *gpio, unsigned nr, int val)
112112
spin_unlock_irqrestore(&chip->spinlock, flags);
113113
}
114114

115-
static int pch_gpio_get(struct gpio_chip *gpio, unsigned nr)
115+
static int pch_gpio_get(struct gpio_chip *gpio, unsigned int nr)
116116
{
117117
struct pch_gpio *chip = gpiochip_get_data(gpio);
118118

119119
return !!(ioread32(&chip->reg->pi) & BIT(nr));
120120
}
121121

122-
static int pch_gpio_direction_output(struct gpio_chip *gpio, unsigned nr,
122+
static int pch_gpio_direction_output(struct gpio_chip *gpio, unsigned int nr,
123123
int val)
124124
{
125125
struct pch_gpio *chip = gpiochip_get_data(gpio);
@@ -146,7 +146,7 @@ static int pch_gpio_direction_output(struct gpio_chip *gpio, unsigned nr,
146146
return 0;
147147
}
148148

149-
static int pch_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
149+
static int pch_gpio_direction_input(struct gpio_chip *gpio, unsigned int nr)
150150
{
151151
struct pch_gpio *chip = gpiochip_get_data(gpio);
152152
u32 pm;
@@ -196,7 +196,7 @@ static void __maybe_unused pch_gpio_restore_reg_conf(struct pch_gpio *chip)
196196
iowrite32(chip->pch_gpio_reg.gpio_use_sel_reg, &chip->reg->gpio_use_sel);
197197
}
198198

199-
static int pch_gpio_to_irq(struct gpio_chip *gpio, unsigned offset)
199+
static int pch_gpio_to_irq(struct gpio_chip *gpio, unsigned int offset)
200200
{
201201
struct pch_gpio *chip = gpiochip_get_data(gpio);
202202
return chip->irq_base + offset;

0 commit comments

Comments
 (0)