mcp23s08: isolate spi specific parts
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 15 Jul 2011 08:25:31 +0000 (10:25 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 15 Jul 2011 19:54:18 +0000 (13:54 -0600)
commitd62b98f305a6b0d32fbdc72ac6ba3d4f4768adeb
tree4d449ba816ce6ddc3df16822863b9c6132b93deb
parent1bb6f9b042eb1428ba927d2e851a00df6308877a
mcp23s08: isolate spi specific parts

Change spi member of struct mcp23s08 to be a ops-specific opaque data
pointer, and move spi specific knowledge out of mcp23s08_probe_one().

No functional change, but is needed to add i2c support.

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