]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: pcf857x: add lock and handle more chips
authorDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 21 Jul 2008 21:21:34 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Jul 2008 16:59:41 +0000 (09:59 -0700)
commit3b6b7e31528942ef5391135c85ad8263a63639ed
tree9e018b1d511a96f745fc870bfdf8bf53759c25ae
parentf1180b43b6ee5488f6f03300d5c6a1ce7dc73917
gpio: pcf857x: add lock and handle more chips

Two small updates to the pcf857x driver: (a) the max732[89] chips are
also second sources for the pcf8574/a, and (b) add a mutex to prevent
trashing the cached state.  Adding the lock is effectively a bugfix,
although it seems unlikely that anyone would have run into the issue it
protects against.

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/Kconfig
drivers/gpio/pcf857x.c