aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-02 12:18:42 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:56:50 -0400
commitb2245ba1644eb1eba400fd04c6e7bb3ab2d4a8fa (patch)
tree0b0213d19f51cd6cda191a91b970fa1fcc1d49b9 /drivers/media
parent6686fa6917caaaaf3d595df6accedb87607517c9 (diff)
V4L/DVB: ir: prepare IR code for a parameter change at register function
A latter patch will reuse the ir_input_register with a different meaning. Before it, change all occurrences to a temporary name. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/IR/ir-keytable.c6
-rw-r--r--drivers/media/dvb/dm1105/dm1105.c2
-rw-r--r--drivers/media/dvb/mantis/mantis_input.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/cx231xx/cx231xx-input.c2
-rw-r--r--drivers/media/video/cx23885/cx23885-input.c2
-rw-r--r--drivers/media/video/cx88/cx88-input.c2
-rw-r--r--drivers/media/video/em28xx/em28xx-input.c2
-rw-r--r--drivers/media/video/ir-kbd-i2c.c2
-rw-r--r--drivers/media/video/saa7134/saa7134-input.c2
11 files changed, 13 insertions, 13 deletions
diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c
index 99cad829a18a..5d4ddc9f4cab 100644
--- a/drivers/media/IR/ir-keytable.c
+++ b/drivers/media/IR/ir-keytable.c
@@ -461,7 +461,7 @@ static void ir_close(struct input_dev *input_dev)
461} 461}
462 462
463/** 463/**
464 * ir_input_register() - sets the IR keycode table and add the handlers 464 * __ir_input_register() - sets the IR keycode table and add the handlers
465 * for keymap table get/set 465 * for keymap table get/set
466 * @input_dev: the struct input_dev descriptor of the device 466 * @input_dev: the struct input_dev descriptor of the device
467 * @rc_tab: the struct ir_scancode_table table of scancode/keymap 467 * @rc_tab: the struct ir_scancode_table table of scancode/keymap
@@ -471,7 +471,7 @@ static void ir_close(struct input_dev *input_dev)
471 * It will register the input/evdev interface for the device and 471 * It will register the input/evdev interface for the device and
472 * register the syfs code for IR class 472 * register the syfs code for IR class
473 */ 473 */
474int ir_input_register(struct input_dev *input_dev, 474int __ir_input_register(struct input_dev *input_dev,
475 const struct ir_scancode_table *rc_tab, 475 const struct ir_scancode_table *rc_tab,
476 const struct ir_dev_props *props, 476 const struct ir_dev_props *props,
477 const char *driver_name) 477 const char *driver_name)
@@ -539,7 +539,7 @@ err:
539 kfree(ir_dev); 539 kfree(ir_dev);
540 return rc; 540 return rc;
541} 541}
542EXPORT_SYMBOL_GPL(ir_input_register); 542EXPORT_SYMBOL_GPL(__ir_input_register);
543 543
544/** 544/**
545 * ir_input_unregister() - unregisters IR and frees resources 545 * ir_input_unregister() - unregisters IR and frees resources
diff --git a/drivers/media/dvb/dm1105/dm1105.c b/drivers/media/dvb/dm1105/dm1105.c
index ff62dc8633c0..416c29bf78d9 100644
--- a/drivers/media/dvb/dm1105/dm1105.c
+++ b/drivers/media/dvb/dm1105/dm1105.c
@@ -630,7 +630,7 @@ int __devinit dm1105_ir_init(struct dm1105_dev *dm1105)
630 630
631 INIT_WORK(&dm1105->ir.work, dm1105_emit_key); 631 INIT_WORK(&dm1105->ir.work, dm1105_emit_key);
632 632
633 err = ir_input_register(input_dev, ir_codes, NULL, MODULE_NAME); 633 err = __ir_input_register(input_dev, ir_codes, NULL, MODULE_NAME);
634 634
635 return err; 635 return err;
636} 636}
diff --git a/drivers/media/dvb/mantis/mantis_input.c b/drivers/media/dvb/mantis/mantis_input.c
index 6baf30229689..3d4e4663220c 100644
--- a/drivers/media/dvb/mantis/mantis_input.c
+++ b/drivers/media/dvb/mantis/mantis_input.c
@@ -128,7 +128,7 @@ int mantis_input_init(struct mantis_pci *mantis)
128 rc->id.version = 1; 128 rc->id.version = 1;
129 rc->dev = mantis->pdev->dev; 129 rc->dev = mantis->pdev->dev;
130 130
131 err = ir_input_register(rc, &ir_mantis, NULL, MODULE_NAME); 131 err = __ir_input_register(rc, &ir_mantis, NULL, MODULE_NAME);
132 if (err) { 132 if (err) {
133 dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err); 133 dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err);
134 input_free_device(rc); 134 input_free_device(rc);
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c
index 75c640e5966c..ab7479ad592f 100644
--- a/drivers/media/dvb/ttpci/budget-ci.c
+++ b/drivers/media/dvb/ttpci/budget-ci.c
@@ -256,7 +256,7 @@ static int msp430_ir_init(struct budget_ci *budget_ci)
256 budget_ci->ir.timer_keyup.function = msp430_ir_keyup; 256 budget_ci->ir.timer_keyup.function = msp430_ir_keyup;
257 budget_ci->ir.timer_keyup.data = (unsigned long) &budget_ci->ir; 257 budget_ci->ir.timer_keyup.data = (unsigned long) &budget_ci->ir;
258 budget_ci->ir.last_raw = 0xffff; /* An impossible value */ 258 budget_ci->ir.last_raw = 0xffff; /* An impossible value */
259 error = ir_input_register(input_dev, ir_codes, NULL, MODULE_NAME); 259 error = __ir_input_register(input_dev, ir_codes, NULL, MODULE_NAME);
260 if (error) { 260 if (error) {
261 printk(KERN_ERR "budget_ci: could not init driver for IR device (code %d)\n", error); 261 printk(KERN_ERR "budget_ci: could not init driver for IR device (code %d)\n", error);
262 return error; 262 return error;
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c
index e3d239da1bad..71a0047ca7b2 100644
--- a/drivers/media/video/bt8xx/bttv-input.c
+++ b/drivers/media/video/bt8xx/bttv-input.c
@@ -392,7 +392,7 @@ int bttv_input_init(struct bttv *btv)
392 bttv_ir_start(btv, ir); 392 bttv_ir_start(btv, ir);
393 393
394 /* all done */ 394 /* all done */
395 err = ir_input_register(btv->remote->dev, ir_codes, NULL, MODULE_NAME); 395 err = __ir_input_register(btv->remote->dev, ir_codes, NULL, MODULE_NAME);
396 if (err) 396 if (err)
397 goto err_out_stop; 397 goto err_out_stop;
398 398
diff --git a/drivers/media/video/cx231xx/cx231xx-input.c b/drivers/media/video/cx231xx/cx231xx-input.c
index a0e8bb88d67e..04ae0839deaa 100644
--- a/drivers/media/video/cx231xx/cx231xx-input.c
+++ b/drivers/media/video/cx231xx/cx231xx-input.c
@@ -219,7 +219,7 @@ int cx231xx_ir_init(struct cx231xx *dev)
219 cx231xx_ir_start(ir); 219 cx231xx_ir_start(ir);
220 220
221 /* all done */ 221 /* all done */
222 err = ir_input_register(ir->input, dev->board.ir_codes, 222 err = __ir_input_register(ir->input, dev->board.ir_codes,
223 NULL, MODULE_NAME); 223 NULL, MODULE_NAME);
224 if (err) 224 if (err)
225 goto err_out_stop; 225 goto err_out_stop;
diff --git a/drivers/media/video/cx23885/cx23885-input.c b/drivers/media/video/cx23885/cx23885-input.c
index 66d3e1c64ce6..cef36f6b93e3 100644
--- a/drivers/media/video/cx23885/cx23885-input.c
+++ b/drivers/media/video/cx23885/cx23885-input.c
@@ -400,7 +400,7 @@ int cx23885_input_init(struct cx23885_dev *dev)
400 dev->ir_input = ir; 400 dev->ir_input = ir;
401 cx23885_input_ir_start(dev); 401 cx23885_input_ir_start(dev);
402 402
403 ret = ir_input_register(ir->dev, ir_codes, NULL, MODULE_NAME); 403 ret = __ir_input_register(ir->dev, ir_codes, NULL, MODULE_NAME);
404 if (ret) 404 if (ret)
405 goto err_out_stop; 405 goto err_out_stop;
406 406
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c
index 48ca9805bb90..30af956a9eaa 100644
--- a/drivers/media/video/cx88/cx88-input.c
+++ b/drivers/media/video/cx88/cx88-input.c
@@ -439,7 +439,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
439 ir->props.close = cx88_ir_close; 439 ir->props.close = cx88_ir_close;
440 440
441 /* all done */ 441 /* all done */
442 err = ir_input_register(ir->input, ir_codes, &ir->props, MODULE_NAME); 442 err = __ir_input_register(ir->input, ir_codes, &ir->props, MODULE_NAME);
443 if (err) 443 if (err)
444 goto err_out_free; 444 goto err_out_free;
445 445
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c
index 32f376654c0c..6f1fc695c561 100644
--- a/drivers/media/video/em28xx/em28xx-input.c
+++ b/drivers/media/video/em28xx/em28xx-input.c
@@ -475,7 +475,7 @@ int em28xx_ir_init(struct em28xx *dev)
475 em28xx_ir_start(ir); 475 em28xx_ir_start(ir);
476 476
477 /* all done */ 477 /* all done */
478 err = ir_input_register(ir->input, dev->board.ir_codes, 478 err = __ir_input_register(ir->input, dev->board.ir_codes,
479 &ir->props, MODULE_NAME); 479 &ir->props, MODULE_NAME);
480 if (err) 480 if (err)
481 goto err_out_stop; 481 goto err_out_stop;
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c
index 607a0be2ec63..e6ada5e46dfc 100644
--- a/drivers/media/video/ir-kbd-i2c.c
+++ b/drivers/media/video/ir-kbd-i2c.c
@@ -447,7 +447,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
447 input_dev->name = ir->name; 447 input_dev->name = ir->name;
448 input_dev->phys = ir->phys; 448 input_dev->phys = ir->phys;
449 449
450 err = ir_input_register(ir->input, ir->ir_codes, NULL, MODULE_NAME); 450 err = __ir_input_register(ir->input, ir->ir_codes, NULL, MODULE_NAME);
451 if (err) 451 if (err)
452 goto err_out_free; 452 goto err_out_free;
453 453
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c
index eaafed181d50..bf6751c760b4 100644
--- a/drivers/media/video/saa7134/saa7134-input.c
+++ b/drivers/media/video/saa7134/saa7134-input.c
@@ -877,7 +877,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
877 } 877 }
878 input_dev->dev.parent = &dev->pci->dev; 878 input_dev->dev.parent = &dev->pci->dev;
879 879
880 err = ir_input_register(ir->dev, ir_codes, &ir->props, MODULE_NAME); 880 err = __ir_input_register(ir->dev, ir_codes, &ir->props, MODULE_NAME);
881 if (err) 881 if (err)
882 goto err_out_free; 882 goto err_out_free;
883 if (ir_codes->ir_type != IR_TYPE_OTHER) { 883 if (ir_codes->ir_type != IR_TYPE_OTHER) {