gpio: mcp23s08 to support both device tree and platform data
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 1 Sep 2014 03:19:52 +0000 (11:19 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 4 Sep 2014 16:59:15 +0000 (18:59 +0200)
commit3af0dbd592fe0a92002f16e341519ba03e92adf7
tree2e9d28522004ab8a16283fc8cc33d6de13cbdbc6
parent59e22114b253aaa7caf14221df4dcf924d067922
gpio: mcp23s08 to support both device tree and platform data

Device tree is not enabled in some architecture where gpio
driver mcp23s08 is still required.

v2-changes:
- Parse device tree properties into platform data other than
  individual variables.
v3-changes:
- Use of_node in gpio_chip device structure, because the
  struct device * always has an of_node which is NULL when
  OF is not used.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-mcp23s08.c
include/linux/spi/mcp23s08.h