]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: regmap: fix type clash
authorMichael Walle <michael@walle.cc>
Sat, 25 Jul 2020 23:23:37 +0000 (01:23 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 26 Jul 2020 22:27:54 +0000 (00:27 +0200)
commit0469724acc7b19f119802ddc7cfed1be6a1c42a4
tree48b30978aed7436c0af9682805d9863dc3f4b114
parentc8bc0ac3f7bb1d6c41a943a11ab52680884c85ca
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: 3f3c49490e42 ("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>
include/linux/gpio/regmap.h