[PATCH 22/24] V4L: Makes the input event device for IR matchableby udev rules.

From: mchehab
Date: Mon Sep 05 2005 - 16:31:56 EST


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

Signed-off-by: Rudo Thomas <rudo@xxxxxxxxx>
Signed-off-by: Michael Fair <michael@xxxxxxxxxxxxxxx>
Signed-off-by: Michael Krufky <mkrufky@xxxxxxx>
Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxx>

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

diff -u /tmp/dst.1212 linux/drivers/media/video/ir-kbd-gpio.c
--- /tmp/dst.1212 2005-09-05 11:43:16.000000000 -0300
+++ linux/drivers/media/video/ir-kbd-gpio.c 2005-09-05 11:43:16.000000000 -0300
@@ -353,6 +353,7 @@
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 -u /tmp/dst.1212 linux/drivers/media/video/cx88/cx88-input.c
--- /tmp/dst.1212 2005-09-05 11:43:17.000000000 -0300
+++ linux/drivers/media/video/cx88/cx88-input.c 2005-09-05 11:43:17.000000000 -0300
@@ -445,6 +445,7 @@
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 -u /tmp/dst.1212 linux/drivers/media/video/saa7134/saa7134-input.c
--- /tmp/dst.1212 2005-09-05 11:43:17.000000000 -0300
+++ linux/drivers/media/video/saa7134/saa7134-input.c 2005-09-05 11:43:17.000000000 -0300
@@ -564,6 +564,7 @@
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;