Messages in this thread Patch in this message | | | From | Nicholas Mc Guire <> | Subject | [PATCH 2/4] ARM: imx legacy: declare unsigned int rather than unsigned | Date | Sat, 13 Apr 2019 09:23:31 +0200 |
| |
provide the proper type for unsigned int.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> ---
Problem reported by checkpatch
Patch was compile-tested with: imx_v4_v5_defconfig (implies CONFIG_MACH_MX27ADS=y)
Patch is against 5.1-rc4 (localversion-next is 20190412)
arch/arm/mach-imx/mach-mx27ads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c index 528846f..49ac898 100644 --- a/arch/arm/mach-imx/mach-mx27ads.c +++ b/arch/arm/mach-imx/mach-mx27ads.c @@ -202,7 +202,7 @@ static const struct imxi2c_platform_data mx27ads_i2c1_data __initconst = { static struct i2c_board_info mx27ads_i2c_devices[] = { }; -static void vgpio_set(struct gpio_chip *chip, unsigned offset, int value) +static void vgpio_set(struct gpio_chip *chip, unsigned int offset, int value) { if (value) imx_writew(PBC_BCTRL1_LCDON, PBC_BCTRL1_SET_REG); @@ -210,7 +210,7 @@ static void vgpio_set(struct gpio_chip *chip, unsigned offset, int value) imx_writew(PBC_BCTRL1_LCDON, PBC_BCTRL1_CLEAR_REG); } -static int vgpio_dir_out(struct gpio_chip *chip, unsigned offset, int value) +static int vgpio_dir_out(struct gpio_chip *chip, unsigned int offset, int value) { return 0; } -- 2.1.4
| |