[PATCH] v4l: make the input event device for IR matchable by udev rules.
authorMauro Carvalho Chehab <mchehab@brturbo.com.br>
Fri, 9 Sep 2005 20:04:00 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:57:53 +0000 (13:57 -0700)
- Makes the input event device created by the V4L drivers for the
  infrared remote matchable by udev rules.

Signed-off-by: Rudo Thomas <rudo@matfyz.cz>
Signed-off-by: Michael Fair <michael@daclubhouse.net>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
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>
drivers/media/video/cx88/cx88-input.c
drivers/media/video/ir-kbd-gpio.c
drivers/media/video/saa7134/saa7134-input.c

index d7980c51478d3d656e8a578ced59e2ac180b8f07..d81b21d6e05d0ded4fbee113170c801dc2f22f08 100644 (file)
@@ -445,6 +445,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
                ir->input.id.vendor = pci->vendor;
                ir->input.id.product = pci->device;
        }
+       ir->input.dev = &pci->dev;
 
        /* record handles to ourself */
        ir->core = core;
index eddadc76e11d65cc26b0ba2db93946a0d59c9d2d..cf292da8fdd5752066411011319570b101b34c02 100644 (file)
@@ -353,6 +353,7 @@ static int ir_probe(struct device *dev)
                ir->input.id.vendor  = sub->core->pci->vendor;
                ir->input.id.product = sub->core->pci->device;
        }
+       ir->input.dev = &sub->core->pci->dev;
 
        if (ir->polling) {
                INIT_WORK(&ir->work, ir_work, ir);
index 0e97b1eec20ef6dd6923919f9f0017e6add6936e..1f456c4d76f2dd90706811ce400de0eab48a2610 100644 (file)
@@ -564,6 +564,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
                ir->dev.id.vendor  = dev->pci->vendor;
                ir->dev.id.product = dev->pci->device;
        }
+       ir->dev.dev = &dev->pci->dev;
 
        /* all done */
        dev->remote = ir;