gpio: handle pca953{4,5,6,7,8} too
authorGuennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Wed, 6 Feb 2008 09:39:04 +0000 (01:39 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:15 +0000 (10:41 -0800)
commitf5e8ff483266e2913bd676d520f46b5675a18e7a
tree54c0212d51fb53fb1f301530649dfcd5247bd8b3
parentf3dc3630f687aa4664b663143f69d99d83195c54
gpio: handle pca953{4,5,6,7,8} too

This third part of an extension to support more pca953x chips updates the
logic to handle the smaller register widths used by the 4-bit and 8-bit parts,
and to use the chip type to determine how many GPIOs it provides.

As long as we don't support interrupt and reset capabilities, those size
issues are the only software-visible differences between these parts.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/pca953x.c