mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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: ebe363197e
("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>
This commit is contained in:
parent
8fc3ed3a47
commit
a070bdbbb0
@ -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)
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user