summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bttv-gpio.c
diff options
context:
space:
mode:
authorMark Weaver <mark-clist@npsl.co.uk>2005-11-14 01:07:52 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-14 03:14:18 +0100
commit6c6c0b2c27e70c3593e023882fabb1cebcbd077e (patch)
tree30b0969ef62e3094362e4057663bac872bd0a44f /drivers/media/video/bttv-gpio.c
parent[PATCH] v4l: (937) Included missing interrupt.h at saa7134-alsa.c (diff)
downloadlinux-6c6c0b2c27e70c3593e023882fabb1cebcbd077e.tar.xz
linux-6c6c0b2c27e70c3593e023882fabb1cebcbd077e.zip
[PATCH] v4l: (939) Support for nebula rc5 based gpio remote
Support for Nebula rc5-based gpio remote. Signed-off-by: Mark Weaver <mark-clist@npsl.co.uk> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/bttv-gpio.c')
-rw-r--r--drivers/media/video/bttv-gpio.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/media/video/bttv-gpio.c b/drivers/media/video/bttv-gpio.c
index 575ce8b8e714..616a5b7e510c 100644
--- a/drivers/media/video/bttv-gpio.c
+++ b/drivers/media/video/bttv-gpio.c
@@ -113,6 +113,24 @@ void bttv_gpio_irq(struct bttv_core *core)
}
}
+int bttv_any_irq(struct bttv_core *core)
+{
+ struct bttv_sub_driver *drv;
+ struct bttv_sub_device *dev;
+ struct list_head *item;
+ int handled = 0;
+
+ list_for_each(item,&core->subs) {
+ dev = list_entry(item,struct bttv_sub_device,list);
+ drv = to_bttv_sub_drv(dev->dev.driver);
+ if (drv && drv->any_irq) {
+ if (drv->any_irq(dev))
+ handled = 1;
+ }
+ }
+ return handled;
+}
+
/* ----------------------------------------------------------------------- */
/* external: sub-driver register/unregister */