Add support for TCA6424A
authorAndreas Schallenberg <Andreas.Schallenberg@3alitytechnica.com>
Wed, 9 May 2012 07:46:17 +0000 (09:46 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 18 May 2012 22:48:34 +0000 (16:48 -0600)
commitae79c19049b75af476adcbcfda6fc29bd93fc6f8
tree8fef28f94ddf49b8c0679ec7de0ae9680b0fb90b
parent453007cf472a2b4c1034e850c3004ee9027005f6
Add support for TCA6424A

This patch extends the PCA953x driver to support TI's TCA6424A 24 bit I2C I/O expander. The patch is based on code by Michele
Bevilacqua.

Changes in v2:
- Compare ngpio against 24 in both places, not >16
- Larger datatype now u32 instead of uint.
  Bit fields not used for struct members since their address is taken.
- Be precise: TCA6424A (untested for older TCA6424)

Signed-off-by: Andreas Schallenberg<Andreas.Schallenberg@3alitytechnica.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-pca953x.c