gpio: lp3943: unsigned to unsigned int cleanup
Getting rid of checkpatch findings. No functional changes. Signed-off-by: Shinyzenith <aakashsensharma@gmail.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
This commit is contained in:
parent
90ce2f01e7
commit
13e024b66c
@ -42,7 +42,7 @@ struct lp3943_gpio {
|
|||||||
u16 input_mask; /* 1 = GPIO is input direction, 0 = output */
|
u16 input_mask; /* 1 = GPIO is input direction, 0 = output */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int lp3943_gpio_request(struct gpio_chip *chip, unsigned offset)
|
static int lp3943_gpio_request(struct gpio_chip *chip, unsigned int offset)
|
||||||
{
|
{
|
||||||
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
||||||
struct lp3943 *lp3943 = lp3943_gpio->lp3943;
|
struct lp3943 *lp3943 = lp3943_gpio->lp3943;
|
||||||
@ -54,7 +54,7 @@ static int lp3943_gpio_request(struct gpio_chip *chip, unsigned offset)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lp3943_gpio_free(struct gpio_chip *chip, unsigned offset)
|
static void lp3943_gpio_free(struct gpio_chip *chip, unsigned int offset)
|
||||||
{
|
{
|
||||||
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
||||||
struct lp3943 *lp3943 = lp3943_gpio->lp3943;
|
struct lp3943 *lp3943 = lp3943_gpio->lp3943;
|
||||||
@ -72,7 +72,7 @@ static int lp3943_gpio_set_mode(struct lp3943_gpio *lp3943_gpio, u8 offset,
|
|||||||
val << mux[offset].shift);
|
val << mux[offset].shift);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lp3943_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
|
static int lp3943_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
|
||||||
{
|
{
|
||||||
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ static int lp3943_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int lp3943_get_gpio_in_status(struct lp3943_gpio *lp3943_gpio,
|
static int lp3943_get_gpio_in_status(struct lp3943_gpio *lp3943_gpio,
|
||||||
struct gpio_chip *chip, unsigned offset)
|
struct gpio_chip *chip, unsigned int offset)
|
||||||
{
|
{
|
||||||
u8 addr, read;
|
u8 addr, read;
|
||||||
int err;
|
int err;
|
||||||
@ -107,7 +107,7 @@ static int lp3943_get_gpio_in_status(struct lp3943_gpio *lp3943_gpio,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int lp3943_get_gpio_out_status(struct lp3943_gpio *lp3943_gpio,
|
static int lp3943_get_gpio_out_status(struct lp3943_gpio *lp3943_gpio,
|
||||||
struct gpio_chip *chip, unsigned offset)
|
struct gpio_chip *chip, unsigned int offset)
|
||||||
{
|
{
|
||||||
struct lp3943 *lp3943 = lp3943_gpio->lp3943;
|
struct lp3943 *lp3943 = lp3943_gpio->lp3943;
|
||||||
const struct lp3943_reg_cfg *mux = lp3943->mux_cfg;
|
const struct lp3943_reg_cfg *mux = lp3943->mux_cfg;
|
||||||
@ -128,7 +128,7 @@ static int lp3943_get_gpio_out_status(struct lp3943_gpio *lp3943_gpio,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lp3943_gpio_get(struct gpio_chip *chip, unsigned offset)
|
static int lp3943_gpio_get(struct gpio_chip *chip, unsigned int offset)
|
||||||
{
|
{
|
||||||
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ static int lp3943_gpio_get(struct gpio_chip *chip, unsigned offset)
|
|||||||
return lp3943_get_gpio_out_status(lp3943_gpio, chip, offset);
|
return lp3943_get_gpio_out_status(lp3943_gpio, chip, offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lp3943_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
|
static void lp3943_gpio_set(struct gpio_chip *chip, unsigned int offset, int value)
|
||||||
{
|
{
|
||||||
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
||||||
u8 data;
|
u8 data;
|
||||||
@ -160,7 +160,7 @@ static void lp3943_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
|
|||||||
lp3943_gpio_set_mode(lp3943_gpio, offset, data);
|
lp3943_gpio_set_mode(lp3943_gpio, offset, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lp3943_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
|
static int lp3943_gpio_direction_output(struct gpio_chip *chip, unsigned int offset,
|
||||||
int value)
|
int value)
|
||||||
{
|
{
|
||||||
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip);
|
||||||
|
Loading…
Reference in New Issue
Block a user