mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 15:14:18 +08:00
gpio: mxs: Prefer unsigned int to bare use of unsigned
Fix checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Jinchao Wang <wjc@cdjrlc.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This commit is contained in:
parent
eda627f6be
commit
cdee1d6222
@ -229,14 +229,14 @@ static int mxs_gpio_init_gc(struct mxs_gpio_port *port, int irq_base)
|
||||
return rv;
|
||||
}
|
||||
|
||||
static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned offset)
|
||||
static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned int offset)
|
||||
{
|
||||
struct mxs_gpio_port *port = gpiochip_get_data(gc);
|
||||
|
||||
return irq_find_mapping(port->domain, offset);
|
||||
}
|
||||
|
||||
static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned offset)
|
||||
static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned int offset)
|
||||
{
|
||||
struct mxs_gpio_port *port = gpiochip_get_data(gc);
|
||||
u32 mask = 1 << offset;
|
||||
|
Loading…
Reference in New Issue
Block a user