Commit cdee1d62 authored by Jinchao Wang's avatar Jinchao Wang Committed by Bartosz Golaszewski
Browse files

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: default avatarJinchao Wang <wjc@cdjrlc.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent eda627f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;