gpio: mcp23s08: convert driver to DT
authorLars Poeschel <poeschel@lemonage.de>
Thu, 4 Apr 2013 10:02:02 +0000 (12:02 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Apr 2013 21:41:17 +0000 (23:41 +0200)
commit97ddb1c88b4ebe057b63346660abfee165ddd468
treeeff1fc4d226bc72ecc8ca3887552b5477ac9298f
parenta2797beadfcb5a0974a30929b613b4d1adb023d1
gpio: mcp23s08: convert driver to DT

This converts the mcp23s08 driver to be able to be used with
device tree.

There is a "spi-present-mask" device tree property, that allows to
use multiple of this spi chips on the same chipselect.

v4:
- removed the ability to specify the pullup from device tree
- updated binding doc

v3:
- removed mcp,chips device tree property in favour of a
    mcp,spi-present-mask and a flag for the pullup of every gpio
- seperated the match table. Now there is one for i2c and one for spi
- do the of reading stuff on stack of the probe function - no devm
    any more

v2:
- squashed booth patches together
- fixed build warning, when CONFIG_OF is not defined
- use of_match_ptr macro for of_match_table

Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-mcp23s08.txt [new file with mode: 0644]
drivers/gpio/gpio-mcp23s08.c