From: Michael Walle Date: Sat, 25 Jul 2020 23:23:37 +0000 (+0200) Subject: gpio: regmap: fix type clash X-Git-Tag: v5.10.7~1950^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a070bdbbb06d7787ec7844a4f1e059cf8b55205d;p=platform%2Fkernel%2Flinux-rpi.git gpio: regmap: fix type clash GPIO_REGMAP_ADDR_ZERO() cast to unsigned long but the actual config parameters are unsigned int. We use unsigned int here because that is the type which is used by the underlying regmap. Fixes: ebe363197e52 ("gpio: add a reusable generic gpio_chip using regmap") Reported-by: kernel test robot Signed-off-by: Michael Walle Link: https://lore.kernel.org/r/20200725232337.27581-1-michael@walle.cc Signed-off-by: Linus Walleij --- diff --git a/include/linux/gpio/regmap.h b/include/linux/gpio/regmap.h index 4c1e6b3..ad76f3d 100644 --- a/include/linux/gpio/regmap.h +++ b/include/linux/gpio/regmap.h @@ -8,7 +8,7 @@ struct gpio_regmap; struct irq_domain; struct regmap; -#define GPIO_REGMAP_ADDR_ZERO ((unsigned long)(-1)) +#define GPIO_REGMAP_ADDR_ZERO ((unsigned int)(-1)) #define GPIO_REGMAP_ADDR(addr) ((addr) ? : GPIO_REGMAP_ADDR_ZERO) /**