Skip to content

Commit 3abbdbe

Browse files
Abanoub8andy-shev
authored andcommitted
gpio: crystalcove: 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 37ceab7 commit 3abbdbe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpio/gpio-crystalcove.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static void crystalcove_update_irq_ctrl(struct crystalcove_gpio *cg, int gpio)
129129
regmap_update_bits(cg->regmap, reg, CTLI_INTCNT_BE, cg->intcnt_value);
130130
}
131131

132-
static int crystalcove_gpio_dir_in(struct gpio_chip *chip, unsigned gpio)
132+
static int crystalcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio)
133133
{
134134
struct crystalcove_gpio *cg = gpiochip_get_data(chip);
135135
int reg = to_reg(gpio, CTRL_OUT);
@@ -140,7 +140,7 @@ static int crystalcove_gpio_dir_in(struct gpio_chip *chip, unsigned gpio)
140140
return regmap_write(cg->regmap, reg, CTLO_INPUT_SET);
141141
}
142142

143-
static int crystalcove_gpio_dir_out(struct gpio_chip *chip, unsigned gpio,
143+
static int crystalcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio,
144144
int value)
145145
{
146146
struct crystalcove_gpio *cg = gpiochip_get_data(chip);
@@ -152,7 +152,7 @@ static int crystalcove_gpio_dir_out(struct gpio_chip *chip, unsigned gpio,
152152
return regmap_write(cg->regmap, reg, CTLO_OUTPUT_SET | value);
153153
}
154154

155-
static int crystalcove_gpio_get(struct gpio_chip *chip, unsigned gpio)
155+
static int crystalcove_gpio_get(struct gpio_chip *chip, unsigned int gpio)
156156
{
157157
struct crystalcove_gpio *cg = gpiochip_get_data(chip);
158158
unsigned int val;
@@ -169,7 +169,7 @@ static int crystalcove_gpio_get(struct gpio_chip *chip, unsigned gpio)
169169
}
170170

171171
static void crystalcove_gpio_set(struct gpio_chip *chip,
172-
unsigned gpio, int value)
172+
unsigned int gpio, int value)
173173
{
174174
struct crystalcove_gpio *cg = gpiochip_get_data(chip);
175175
int reg = to_reg(gpio, CTRL_OUT);
@@ -183,7 +183,7 @@ static void crystalcove_gpio_set(struct gpio_chip *chip,
183183
regmap_update_bits(cg->regmap, reg, 1, 0);
184184
}
185185

186-
static int crystalcove_irq_type(struct irq_data *data, unsigned type)
186+
static int crystalcove_irq_type(struct irq_data *data, unsigned int type)
187187
{
188188
struct crystalcove_gpio *cg =
189189
gpiochip_get_data(irq_data_get_irq_chip_data(data));

0 commit comments

Comments
 (0)