gpio/mcp23s08: support mcp23s17 variant
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 9 Mar 2011 16:56:30 +0000 (17:56 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 12 Mar 2011 08:26:34 +0000 (01:26 -0700)
commit0b7bb77fd55903ff9dc7c0474c49002aa6b9c78c
treed6f20011adc132700bc3e98d8686cbe838d7c86d
parent9c3c8afccb6a163fd2be739f511e863eab668702
gpio/mcp23s08: support mcp23s17 variant

mpc23s17 is very similar to the mcp23s08, except that registers are 16bit
wide, so extend the interface to work with both variants.

The s17 variant also has an additional address pin, so adjust platform
data structure to support up to 8 devices per SPI chipselect.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/Kconfig
drivers/gpio/mcp23s08.c
include/linux/spi/mcp23s08.h