gpio: pca953x.c: add interrupt handling capability
authorMarc Zyngier <maz@misterjones.org>
Fri, 5 Mar 2010 21:44:36 +0000 (13:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:48 +0000 (11:26 -0800)
commit89ea8bbe9c3eb2ea0cb57a4ecf283cab7326f0b0
treef06f9594be6e64699ae3d8672d4868b81e25cfa7
parent8c35c89aa3d7e0f253c3a10456a8b075288b4565
gpio: pca953x.c: add interrupt handling capability

Most of the GPIO expanders controlled by the pca953x driver are able to
report changes on the input pins through an *INT pin.

This patch implements the irq_chip functionality (edge detection only).

The driver has been tested on an Arcom Zeus.

[akpm@linux-foundation.org: the compiler does inlining for us nowadays]
Signed-off-by: Marc Zyngier <maz@misterjones.org>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: David Brownell <david-b@pacbell.net>
Cc: Nate Case <ncase@xes-inc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/Kconfig
drivers/gpio/pca953x.c
include/linux/i2c/pca953x.h