Commit 1d3dfbd1 authored by Roman Sommer's avatar Roman Sommer Committed by Greg Kroah-Hartman

staging: greybus: fix checkpatch unsigned warnings

Fix checkpatch warnings for parameter type unsigned in greybus.
Note that this patch does not fix all checkpatch warnings for the
affected files.
Signed-off-by: default avatarChristian Bewermeyer <christian.bewermeyer@fau.de>
Signed-off-by: default avatarRoman Sommer <roman.sommer@fau.de>
Reviewed-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a1f10771
...@@ -410,21 +410,21 @@ static int gb_gpio_request_handler(struct gb_operation *op) ...@@ -410,21 +410,21 @@ static int gb_gpio_request_handler(struct gb_operation *op)
return 0; return 0;
} }
static int gb_gpio_request(struct gpio_chip *chip, unsigned offset) static int gb_gpio_request(struct gpio_chip *chip, unsigned int offset)
{ {
struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip); struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
return gb_gpio_activate_operation(ggc, (u8)offset); return gb_gpio_activate_operation(ggc, (u8)offset);
} }
static void gb_gpio_free(struct gpio_chip *chip, unsigned offset) static void gb_gpio_free(struct gpio_chip *chip, unsigned int offset)
{ {
struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip); struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
gb_gpio_deactivate_operation(ggc, (u8)offset); gb_gpio_deactivate_operation(ggc, (u8)offset);
} }
static int gb_gpio_get_direction(struct gpio_chip *chip, unsigned offset) static int gb_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
{ {
struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip); struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
u8 which; u8 which;
...@@ -438,14 +438,14 @@ static int gb_gpio_get_direction(struct gpio_chip *chip, unsigned offset) ...@@ -438,14 +438,14 @@ static int gb_gpio_get_direction(struct gpio_chip *chip, unsigned offset)
return ggc->lines[which].direction ? 1 : 0; return ggc->lines[which].direction ? 1 : 0;
} }
static int gb_gpio_direction_input(struct gpio_chip *chip, unsigned offset) static int gb_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
{ {
struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip); struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
return gb_gpio_direction_in_operation(ggc, (u8)offset); return gb_gpio_direction_in_operation(ggc, (u8)offset);
} }
static int gb_gpio_direction_output(struct gpio_chip *chip, unsigned offset, static int gb_gpio_direction_output(struct gpio_chip *chip, unsigned int offset,
int value) int value)
{ {
struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip); struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
...@@ -453,7 +453,7 @@ static int gb_gpio_direction_output(struct gpio_chip *chip, unsigned offset, ...@@ -453,7 +453,7 @@ static int gb_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
return gb_gpio_direction_out_operation(ggc, (u8)offset, !!value); return gb_gpio_direction_out_operation(ggc, (u8)offset, !!value);
} }
static int gb_gpio_get(struct gpio_chip *chip, unsigned offset) static int gb_gpio_get(struct gpio_chip *chip, unsigned int offset)
{ {
struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip); struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
u8 which; u8 which;
...@@ -467,15 +467,15 @@ static int gb_gpio_get(struct gpio_chip *chip, unsigned offset) ...@@ -467,15 +467,15 @@ static int gb_gpio_get(struct gpio_chip *chip, unsigned offset)
return ggc->lines[which].value; return ggc->lines[which].value;
} }
static void gb_gpio_set(struct gpio_chip *chip, unsigned offset, int value) static void gb_gpio_set(struct gpio_chip *chip, unsigned int offset, int value)
{ {
struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip); struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
gb_gpio_set_value_operation(ggc, (u8)offset, !!value); gb_gpio_set_value_operation(ggc, (u8)offset, !!value);
} }
static int gb_gpio_set_debounce(struct gpio_chip *chip, unsigned offset, static int gb_gpio_set_debounce(struct gpio_chip *chip, unsigned int offset,
unsigned debounce) unsigned int debounce)
{ {
struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip); struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
u16 usec; u16 usec;
...@@ -593,7 +593,7 @@ static int gb_gpio_irqchip_add(struct gpio_chip *chip, ...@@ -593,7 +593,7 @@ static int gb_gpio_irqchip_add(struct gpio_chip *chip,
{ {
struct gb_gpio_controller *ggc; struct gb_gpio_controller *ggc;
unsigned int offset; unsigned int offset;
unsigned irq_base; unsigned int irq_base;
if (!chip || !irqchip) if (!chip || !irqchip)
return -EINVAL; return -EINVAL;
...@@ -625,7 +625,7 @@ static int gb_gpio_irqchip_add(struct gpio_chip *chip, ...@@ -625,7 +625,7 @@ static int gb_gpio_irqchip_add(struct gpio_chip *chip,
return 0; return 0;
} }
static int gb_gpio_to_irq(struct gpio_chip *chip, unsigned offset) static int gb_gpio_to_irq(struct gpio_chip *chip, unsigned int offset)
{ {
struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip); struct gb_gpio_controller *ggc = gpio_chip_to_gb_gpio_controller(chip);
......
...@@ -124,7 +124,7 @@ static DEFINE_IDA(loopback_ida); ...@@ -124,7 +124,7 @@ static DEFINE_IDA(loopback_ida);
#define GB_LOOPBACK_FIFO_DEFAULT 8192 #define GB_LOOPBACK_FIFO_DEFAULT 8192
static unsigned kfifo_depth = GB_LOOPBACK_FIFO_DEFAULT; static unsigned int kfifo_depth = GB_LOOPBACK_FIFO_DEFAULT;
module_param(kfifo_depth, uint, 0444); module_param(kfifo_depth, uint, 0444);
/* Maximum size of any one send data buffer we support */ /* Maximum size of any one send data buffer we support */
......
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