tree b4d5b458fcc71aee7129525e8685339334db6d10
parent 5129b1589883d6eaa54886f3e0c5d918dafe329e
author Mauro Carvalho Chehab <[EMAIL PROTECTED]> Sat, 10 Sep 2005 03:04:00 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sat, 10 Sep 2005 03:57:53 -0700

[PATCH] v4l: make the input event device for IR matchable by udev rules.

- Makes the input event device created by the V4L drivers for the
  infrared remote matchable by udev rules.

Signed-off-by: Rudo Thomas <[EMAIL PROTECTED]>
Signed-off-by: Michael Fair <[EMAIL PROTECTED]>
Signed-off-by: Michael Krufky <[EMAIL PROTECTED]>
Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 drivers/media/video/cx88/cx88-input.c       |    1 +
 drivers/media/video/ir-kbd-gpio.c           |    1 +
 drivers/media/video/saa7134/saa7134-input.c |    1 +
 3 files changed, 3 insertions(+)

diff --git a/drivers/media/video/cx88/cx88-input.c 
b/drivers/media/video/cx88/cx88-input.c
--- a/drivers/media/video/cx88/cx88-input.c
+++ b/drivers/media/video/cx88/cx88-input.c
@@ -445,6 +445,7 @@ int cx88_ir_init(struct cx88_core *core,
                ir->input.id.vendor = pci->vendor;
                ir->input.id.product = pci->device;
        }
+       ir->input.dev = &pci->dev;
 
        /* record handles to ourself */
        ir->core = core;
diff --git a/drivers/media/video/ir-kbd-gpio.c 
b/drivers/media/video/ir-kbd-gpio.c
--- a/drivers/media/video/ir-kbd-gpio.c
+++ b/drivers/media/video/ir-kbd-gpio.c
@@ -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);
diff --git a/drivers/media/video/saa7134/saa7134-input.c 
b/drivers/media/video/saa7134/saa7134-input.c
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -564,6 +564,7 @@ int saa7134_input_init1(struct saa7134_d
                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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to