Commit 3cac991e authored by Quentin Schulz's avatar Quentin Schulz Committed by Linus Walleij

gpio: axp209: switch unsigned variables to unsigned int

Checkpatch complains with the following message:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

Let's make it happy by switching over to unsigned int.
Signed-off-by: default avatarQuentin Schulz <quentin.schulz@free-electrons.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 4fbd8d19
...@@ -32,7 +32,7 @@ struct axp20x_gpio { ...@@ -32,7 +32,7 @@ struct axp20x_gpio {
struct regmap *regmap; struct regmap *regmap;
}; };
static int axp20x_gpio_get_reg(unsigned offset) static int axp20x_gpio_get_reg(unsigned int offset)
{ {
switch (offset) { switch (offset) {
case 0: case 0:
...@@ -46,7 +46,7 @@ static int axp20x_gpio_get_reg(unsigned offset) ...@@ -46,7 +46,7 @@ static int axp20x_gpio_get_reg(unsigned offset)
return -EINVAL; return -EINVAL;
} }
static int axp20x_gpio_input(struct gpio_chip *chip, unsigned offset) static int axp20x_gpio_input(struct gpio_chip *chip, unsigned int offset)
{ {
struct axp20x_gpio *gpio = gpiochip_get_data(chip); struct axp20x_gpio *gpio = gpiochip_get_data(chip);
int reg; int reg;
...@@ -60,7 +60,7 @@ static int axp20x_gpio_input(struct gpio_chip *chip, unsigned offset) ...@@ -60,7 +60,7 @@ static int axp20x_gpio_input(struct gpio_chip *chip, unsigned offset)
AXP20X_GPIO_FUNCTION_INPUT); AXP20X_GPIO_FUNCTION_INPUT);
} }
static int axp20x_gpio_get(struct gpio_chip *chip, unsigned offset) static int axp20x_gpio_get(struct gpio_chip *chip, unsigned int offset)
{ {
struct axp20x_gpio *gpio = gpiochip_get_data(chip); struct axp20x_gpio *gpio = gpiochip_get_data(chip);
unsigned int val; unsigned int val;
...@@ -73,7 +73,8 @@ static int axp20x_gpio_get(struct gpio_chip *chip, unsigned offset) ...@@ -73,7 +73,8 @@ static int axp20x_gpio_get(struct gpio_chip *chip, unsigned offset)
return !!(val & BIT(offset + 4)); return !!(val & BIT(offset + 4));
} }
static int axp20x_gpio_get_direction(struct gpio_chip *chip, unsigned offset) static int axp20x_gpio_get_direction(struct gpio_chip *chip,
unsigned int offset)
{ {
struct axp20x_gpio *gpio = gpiochip_get_data(chip); struct axp20x_gpio *gpio = gpiochip_get_data(chip);
unsigned int val; unsigned int val;
...@@ -102,7 +103,7 @@ static int axp20x_gpio_get_direction(struct gpio_chip *chip, unsigned offset) ...@@ -102,7 +103,7 @@ static int axp20x_gpio_get_direction(struct gpio_chip *chip, unsigned offset)
return val & 2; return val & 2;
} }
static int axp20x_gpio_output(struct gpio_chip *chip, unsigned offset, static int axp20x_gpio_output(struct gpio_chip *chip, unsigned int offset,
int value) int value)
{ {
struct axp20x_gpio *gpio = gpiochip_get_data(chip); struct axp20x_gpio *gpio = gpiochip_get_data(chip);
...@@ -118,7 +119,7 @@ static int axp20x_gpio_output(struct gpio_chip *chip, unsigned offset, ...@@ -118,7 +119,7 @@ static int axp20x_gpio_output(struct gpio_chip *chip, unsigned offset,
: AXP20X_GPIO_FUNCTION_OUT_LOW); : AXP20X_GPIO_FUNCTION_OUT_LOW);
} }
static void axp20x_gpio_set(struct gpio_chip *chip, unsigned offset, static void axp20x_gpio_set(struct gpio_chip *chip, unsigned int offset,
int value) int value)
{ {
axp20x_gpio_output(chip, offset, value); axp20x_gpio_output(chip, offset, value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment