aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor at mail.ru>2007-07-16 08:28:15 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-18 13:23:46 -0400
commit2c8a3a33558d3f5aa18b56eada66fbe712ee6bb7 (patch)
treeb65a1b88c270a7d1ff6b6da16964c2278c3fe81a /drivers
parentafb758c4b03b17ff856f2bd58e488d152b342875 (diff)
V4L/DVB (5698): Input: drivers/media - switch to using input_dev->dev.parent
In preparation for struct class_device -> struct device input core conversion switch to using input_dev->dev.parent when specifying device position in sysfs tree. Signed-off-by: Dmitry Torokhov <dtor at mail.ru> Acked-by: Thierry Merle <thierry.merle@free.fr> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/cinergyT2/cinergyT2.c2
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb-remote.c2
-rw-r--r--drivers/media/dvb/ttpci/av7110_ir.c2
-rw-r--r--drivers/media/dvb/ttpci/budget-ci.c2
-rw-r--r--drivers/media/video/bt8xx/bttv-input.c2
-rw-r--r--drivers/media/video/cx88/cx88-input.c2
-rw-r--r--drivers/media/video/saa7134/saa7134-input.c2
-rw-r--r--drivers/media/video/usbvideo/konicawc.c2
-rw-r--r--drivers/media/video/usbvideo/quickcam_messenger.c2
9 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/dvb/cinergyT2/cinergyT2.c b/drivers/media/dvb/cinergyT2/cinergyT2.c
index b40af48a2edb..bc22064b50ef 100644
--- a/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -829,7 +829,7 @@ static int cinergyt2_register_rc(struct cinergyt2 *cinergyt2)
829 input_dev->id.vendor = cinergyt2->udev->descriptor.idVendor; 829 input_dev->id.vendor = cinergyt2->udev->descriptor.idVendor;
830 input_dev->id.product = cinergyt2->udev->descriptor.idProduct; 830 input_dev->id.product = cinergyt2->udev->descriptor.idProduct;
831 input_dev->id.version = 1; 831 input_dev->id.version = 1;
832 input_dev->cdev.dev = &cinergyt2->udev->dev; 832 input_dev->dev.parent = &cinergyt2->udev->dev;
833 833
834 err = input_register_device(input_dev); 834 err = input_register_device(input_dev);
835 if (err) { 835 if (err) {
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-remote.c b/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
index 9200a30dd1b9..7b9f35bfb4f0 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
+++ b/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
@@ -110,7 +110,7 @@ int dvb_usb_remote_init(struct dvb_usb_device *d)
110 input_dev->name = "IR-receiver inside an USB DVB receiver"; 110 input_dev->name = "IR-receiver inside an USB DVB receiver";
111 input_dev->phys = d->rc_phys; 111 input_dev->phys = d->rc_phys;
112 usb_to_input_id(d->udev, &input_dev->id); 112 usb_to_input_id(d->udev, &input_dev->id);
113 input_dev->cdev.dev = &d->udev->dev; 113 input_dev->dev.parent = &d->udev->dev;
114 114
115 /* set the bits for the keys */ 115 /* set the bits for the keys */
116 deb_rc("key map size: %d\n", d->props.rc_key_map_size); 116 deb_rc("key map size: %d\n", d->props.rc_key_map_size);
diff --git a/drivers/media/dvb/ttpci/av7110_ir.c b/drivers/media/dvb/ttpci/av7110_ir.c
index a97f166bb523..6322800ee12b 100644
--- a/drivers/media/dvb/ttpci/av7110_ir.c
+++ b/drivers/media/dvb/ttpci/av7110_ir.c
@@ -356,7 +356,7 @@ int __devinit av7110_ir_init(struct av7110 *av7110)
356 input_dev->id.vendor = av7110->dev->pci->vendor; 356 input_dev->id.vendor = av7110->dev->pci->vendor;
357 input_dev->id.product = av7110->dev->pci->device; 357 input_dev->id.product = av7110->dev->pci->device;
358 } 358 }
359 input_dev->cdev.dev = &av7110->dev->pci->dev; 359 input_dev->dev.parent = &av7110->dev->pci->dev;
360 /* initial keymap */ 360 /* initial keymap */
361 memcpy(av7110->ir.key_map, default_key_map, sizeof av7110->ir.key_map); 361 memcpy(av7110->ir.key_map, default_key_map, sizeof av7110->ir.key_map);
362 input_register_keys(&av7110->ir); 362 input_register_keys(&av7110->ir);
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c
index 9d42f88ebb0e..873c3ba296f2 100644
--- a/drivers/media/dvb/ttpci/budget-ci.c
+++ b/drivers/media/dvb/ttpci/budget-ci.c
@@ -206,7 +206,7 @@ static int msp430_ir_init(struct budget_ci *budget_ci)
206 input_dev->id.vendor = saa->pci->vendor; 206 input_dev->id.vendor = saa->pci->vendor;
207 input_dev->id.product = saa->pci->device; 207 input_dev->id.product = saa->pci->device;
208 } 208 }
209 input_dev->cdev.dev = &saa->pci->dev; 209 input_dev->dev.parent = &saa->pci->dev;
210 210
211 /* Select keymap and address */ 211 /* Select keymap and address */
212 switch (budget_ci->budget.dev->pci->subsystem_device) { 212 switch (budget_ci->budget.dev->pci->subsystem_device) {
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c
index 6f74c8042bc3..94a13d0ee614 100644
--- a/drivers/media/video/bt8xx/bttv-input.c
+++ b/drivers/media/video/bt8xx/bttv-input.c
@@ -313,7 +313,7 @@ int bttv_input_init(struct bttv *btv)
313 input_dev->id.vendor = btv->c.pci->vendor; 313 input_dev->id.vendor = btv->c.pci->vendor;
314 input_dev->id.product = btv->c.pci->device; 314 input_dev->id.product = btv->c.pci->device;
315 } 315 }
316 input_dev->cdev.dev = &btv->c.pci->dev; 316 input_dev->dev.parent = &btv->c.pci->dev;
317 317
318 btv->remote = ir; 318 btv->remote = ir;
319 bttv_ir_start(btv, ir); 319 bttv_ir_start(btv, ir);
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c
index 7ff901f0bf68..ddfae9f80ade 100644
--- a/drivers/media/video/cx88/cx88-input.c
+++ b/drivers/media/video/cx88/cx88-input.c
@@ -324,7 +324,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
324 input_dev->id.vendor = pci->vendor; 324 input_dev->id.vendor = pci->vendor;
325 input_dev->id.product = pci->device; 325 input_dev->id.product = pci->device;
326 } 326 }
327 input_dev->cdev.dev = &pci->dev; 327 input_dev->dev.parent = &pci->dev;
328 /* record handles to ourself */ 328 /* record handles to ourself */
329 ir->core = core; 329 ir->core = core;
330 core->ir = ir; 330 core->ir = ir;
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index 2de8c2acb660..063487ef8d18 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -377,7 +377,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
377 input_dev->id.vendor = dev->pci->vendor; 377 input_dev->id.vendor = dev->pci->vendor;
378 input_dev->id.product = dev->pci->device; 378 input_dev->id.product = dev->pci->device;
379 } 379 }
380 input_dev->cdev.dev = &dev->pci->dev; 380 input_dev->dev.parent = &dev->pci->dev;
381 381
382 dev->remote = ir; 382 dev->remote = ir;
383 saa7134_ir_start(dev, ir); 383 saa7134_ir_start(dev, ir);
diff --git a/drivers/media/video/usbvideo/konicawc.c b/drivers/media/video/usbvideo/konicawc.c
index abe214619092..491505d6fdee 100644
--- a/drivers/media/video/usbvideo/konicawc.c
+++ b/drivers/media/video/usbvideo/konicawc.c
@@ -236,7 +236,7 @@ static void konicawc_register_input(struct konicawc *cam, struct usb_device *dev
236 input_dev->name = "Konicawc snapshot button"; 236 input_dev->name = "Konicawc snapshot button";
237 input_dev->phys = cam->input_physname; 237 input_dev->phys = cam->input_physname;
238 usb_to_input_id(dev, &input_dev->id); 238 usb_to_input_id(dev, &input_dev->id);
239 input_dev->cdev.dev = &dev->dev; 239 input_dev->dev.parent = &dev->dev;
240 240
241 input_dev->evbit[0] = BIT(EV_KEY); 241 input_dev->evbit[0] = BIT(EV_KEY);
242 input_dev->keybit[LONG(BTN_0)] = BIT(BTN_0); 242 input_dev->keybit[LONG(BTN_0)] = BIT(BTN_0);
diff --git a/drivers/media/video/usbvideo/quickcam_messenger.c b/drivers/media/video/usbvideo/quickcam_messenger.c
index ec0ff2247f06..f49a4421468c 100644
--- a/drivers/media/video/usbvideo/quickcam_messenger.c
+++ b/drivers/media/video/usbvideo/quickcam_messenger.c
@@ -100,7 +100,7 @@ static void qcm_register_input(struct qcm *cam, struct usb_device *dev)
100 input_dev->name = "QCM button"; 100 input_dev->name = "QCM button";
101 input_dev->phys = cam->input_physname; 101 input_dev->phys = cam->input_physname;
102 usb_to_input_id(dev, &input_dev->id); 102 usb_to_input_id(dev, &input_dev->id);
103 input_dev->cdev.dev = &dev->dev; 103 input_dev->dev.parent = &dev->dev;
104 104
105 input_dev->evbit[0] = BIT(EV_KEY); 105 input_dev->evbit[0] = BIT(EV_KEY);
106 input_dev->keybit[LONG(BTN_0)] = BIT(BTN_0); 106 input_dev->keybit[LONG(BTN_0)] = BIT(BTN_0);