Commit 8d091012 authored by Douglas Anderson's avatar Douglas Anderson Committed by Linus Walleij

gpio: Make "offset" and "unsigned int", not just "unsigned"

When I copied the function prototypes from the GPIO header file into
my own driver, checkpatch yelled at me saying that I shouldn't use use
"unsigned" but instead should say "unsigned int".  Let's make the
header file use "unsigned int" so others who copy like I did won't get
yelled at.
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20200428172322.2.Iacb3c8152c3cf9015a91308678155a578b0cc050@changeidSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 36b52154
...@@ -349,30 +349,30 @@ struct gpio_chip { ...@@ -349,30 +349,30 @@ struct gpio_chip {
struct module *owner; struct module *owner;
int (*request)(struct gpio_chip *gc, int (*request)(struct gpio_chip *gc,
unsigned offset); unsigned int offset);
void (*free)(struct gpio_chip *gc, void (*free)(struct gpio_chip *gc,
unsigned offset); unsigned int offset);
int (*get_direction)(struct gpio_chip *gc, int (*get_direction)(struct gpio_chip *gc,
unsigned offset); unsigned int offset);
int (*direction_input)(struct gpio_chip *gc, int (*direction_input)(struct gpio_chip *gc,
unsigned offset); unsigned int offset);
int (*direction_output)(struct gpio_chip *gc, int (*direction_output)(struct gpio_chip *gc,
unsigned offset, int value); unsigned int offset, int value);
int (*get)(struct gpio_chip *gc, int (*get)(struct gpio_chip *gc,
unsigned offset); unsigned int offset);
int (*get_multiple)(struct gpio_chip *gc, int (*get_multiple)(struct gpio_chip *gc,
unsigned long *mask, unsigned long *mask,
unsigned long *bits); unsigned long *bits);
void (*set)(struct gpio_chip *gc, void (*set)(struct gpio_chip *gc,
unsigned offset, int value); unsigned int offset, int value);
void (*set_multiple)(struct gpio_chip *gc, void (*set_multiple)(struct gpio_chip *gc,
unsigned long *mask, unsigned long *mask,
unsigned long *bits); unsigned long *bits);
int (*set_config)(struct gpio_chip *gc, int (*set_config)(struct gpio_chip *gc,
unsigned offset, unsigned int offset,
unsigned long config); unsigned long config);
int (*to_irq)(struct gpio_chip *gc, int (*to_irq)(struct gpio_chip *gc,
unsigned offset); unsigned int offset);
void (*dbg_show)(struct seq_file *s, void (*dbg_show)(struct seq_file *s,
struct gpio_chip *gc); struct gpio_chip *gc);
...@@ -459,7 +459,7 @@ struct gpio_chip { ...@@ -459,7 +459,7 @@ struct gpio_chip {
}; };
extern const char *gpiochip_is_requested(struct gpio_chip *gc, extern const char *gpiochip_is_requested(struct gpio_chip *gc,
unsigned offset); unsigned int offset);
/* add/remove chips */ /* add/remove chips */
extern int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data, extern int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data,
...@@ -657,9 +657,9 @@ static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gc, ...@@ -657,9 +657,9 @@ static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gc,
} }
#endif /* CONFIG_LOCKDEP */ #endif /* CONFIG_LOCKDEP */
int gpiochip_generic_request(struct gpio_chip *gc, unsigned offset); int gpiochip_generic_request(struct gpio_chip *gc, unsigned int offset);
void gpiochip_generic_free(struct gpio_chip *gc, unsigned offset); void gpiochip_generic_free(struct gpio_chip *gc, unsigned int offset);
int gpiochip_generic_config(struct gpio_chip *gc, unsigned offset, int gpiochip_generic_config(struct gpio_chip *gc, unsigned int offset,
unsigned long config); unsigned long config);
/** /**
......
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