]> git.baikalelectronics.ru Git - kernel.git/commit
gpio-mcp23s08: i2c: auto-select base if no DT match or platform data
authorDaniel M. Weeks <dan@danweeks.net>
Fri, 19 Jul 2013 04:19:58 +0000 (00:19 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Aug 2013 13:07:46 +0000 (15:07 +0200)
commit1dec40cab2e3d0c356e40edb7cbcc903d356c455
tree9190a65f02945146c80fe78cb280e33ef19d814b
parent794b8801e153bf06e6984aafc71a803447611db9
gpio-mcp23s08: i2c: auto-select base if no DT match or platform data

The call to gpiochip_add made by this driver is capable of auto-selecting a
base if one is not provided. However, it was not called unless there was
already a DT entry or platform data. This patch calls it even if the base is
not already known so that gpiochip_add can attempt to find a usable base.

Signed-off-by: Daniel M. Weeks <dan@danweeks.net>
Acked-by: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c