Skip to content

Commit a070bdb

Browse files
mwalleLinus Walleij
authored andcommitted
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: ebe3631 ("gpio: add a reusable generic gpio_chip using regmap") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Michael Walle <michael@walle.cc> Link: https://lore.kernel.org/r/20200725232337.27581-1-michael@walle.cc Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 8fc3ed3 commit a070bdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/gpio/regmap.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct gpio_regmap;
88
struct irq_domain;
99
struct regmap;
1010

11-
#define GPIO_REGMAP_ADDR_ZERO ((unsigned long)(-1))
11+
#define GPIO_REGMAP_ADDR_ZERO ((unsigned int)(-1))
1212
#define GPIO_REGMAP_ADDR(addr) ((addr) ? : GPIO_REGMAP_ADDR_ZERO)
1313

1414
/**

0 commit comments

Comments
 (0)