Commit 67e49a1a authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Linus Torvalds

[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: default avatarRudo Thomas <rudo@matfyz.cz>
Signed-off-by: default avatarMichael Fair <michael@daclubhouse.net>
Signed-off-by: default avatarMichael Krufky <mkrufky@m1k.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5129b158
...@@ -445,6 +445,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci) ...@@ -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.vendor = pci->vendor;
ir->input.id.product = pci->device; ir->input.id.product = pci->device;
} }
ir->input.dev = &pci->dev;
/* record handles to ourself */ /* record handles to ourself */
ir->core = core; ir->core = core;
......
...@@ -353,6 +353,7 @@ static int ir_probe(struct device *dev) ...@@ -353,6 +353,7 @@ static int ir_probe(struct device *dev)
ir->input.id.vendor = sub->core->pci->vendor; ir->input.id.vendor = sub->core->pci->vendor;
ir->input.id.product = sub->core->pci->device; ir->input.id.product = sub->core->pci->device;
} }
ir->input.dev = &sub->core->pci->dev;
if (ir->polling) { if (ir->polling) {
INIT_WORK(&ir->work, ir_work, ir); INIT_WORK(&ir->work, ir_work, ir);
......
...@@ -564,6 +564,7 @@ int saa7134_input_init1(struct saa7134_dev *dev) ...@@ -564,6 +564,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
ir->dev.id.vendor = dev->pci->vendor; ir->dev.id.vendor = dev->pci->vendor;
ir->dev.id.product = dev->pci->device; ir->dev.id.product = dev->pci->device;
} }
ir->dev.dev = &dev->pci->dev;
/* all done */ /* all done */
dev->remote = ir; dev->remote = ir;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment