mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 23:23:55 +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