struct regmap *regmap;
};
-static int axp20x_gpio_get_reg(unsigned offset)
+static int axp20x_gpio_get_reg(unsigned int offset)
{
switch (offset) {
case 0:
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);
int reg;
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);
unsigned int val;
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);
unsigned int val;
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)
{
struct axp20x_gpio *gpio = gpiochip_get_data(chip);
: 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)
{
axp20x_gpio_output(chip, offset, value);