V4L/DVB (13616): IR: rename ir_input_free as ir_input_unregister
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 11 Dec 2009 12:47:42 +0000 (09:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 16 Dec 2009 02:18:44 +0000 (00:18 -0200)
Now, ir_input_free does more than just freeing the keytab. Better to
rename it as ir_input_unregister.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-keytable.c
drivers/media/dvb/dm1105/dm1105.c
drivers/media/dvb/ttpci/budget-ci.c
drivers/media/video/bt8xx/bttv-input.c
drivers/media/video/cx231xx/cx231xx-input.c
drivers/media/video/cx23885/cx23885-input.c
drivers/media/video/cx88/cx88-input.c
drivers/media/video/em28xx/em28xx-input.c
drivers/media/video/ir-kbd-i2c.c
drivers/media/video/saa7134/saa7134-input.c
include/media/ir-core.h

index ddb8a0f8af4d2dbee34aeef2736882ef465df004..e9c9bd34af656d3b2481055b70dc2ec7c8ad20d9 100644 (file)
@@ -450,7 +450,7 @@ int ir_input_register(struct input_dev *input_dev,
 }
 EXPORT_SYMBOL_GPL(ir_input_register);
 
-void ir_input_free(struct input_dev *dev)
+void ir_input_unregister(struct input_dev *dev)
 {
        struct ir_input_dev *ir_dev = input_get_drvdata(dev);
        struct ir_scancode_table *rc_tab = &ir_dev->rc_tab;
@@ -467,7 +467,7 @@ void ir_input_free(struct input_dev *dev)
        kfree(ir_dev);
        input_set_drvdata(dev, NULL);
 }
-EXPORT_SYMBOL_GPL(ir_input_free);
+EXPORT_SYMBOL_GPL(ir_input_unregister);
 
 int ir_core_debug;    /* ir_debug level (0,1,2) */
 EXPORT_SYMBOL_GPL(ir_core_debug);
index 53e3f2a7d31aa0f9ed8c4a50f98451920033784f..34e4e569cc7d84848235eabf5de04a099b95df8c 100644 (file)
@@ -613,7 +613,7 @@ int __devinit dm1105_ir_init(struct dm1105dvb *dm1105)
 
        err = input_register_device(input_dev);
        if (err) {
-               ir_input_free(input_dev);
+               ir_input_unregister(input_dev);
                input_free_device(input_dev);
                return err;
        }
@@ -623,7 +623,7 @@ int __devinit dm1105_ir_init(struct dm1105dvb *dm1105)
 
 void __devexit dm1105_ir_exit(struct dm1105dvb *dm1105)
 {
-       ir_input_free(dm1105->ir.input_dev);
+       ir_input_unregister(dm1105->ir.input_dev);
        input_unregister_device(dm1105->ir.input_dev);
 }
 
index 7d193ebc0aea30baaf82896b7ed8b4f3444c0a47..9c9070a403dd6372c57e3a37223a2c099c20a994 100644 (file)
@@ -286,7 +286,7 @@ static int msp430_ir_init(struct budget_ci *budget_ci)
        return 0;
 
 out2:
-       ir_input_free(input_dev);
+       ir_input_unregister(input_dev);
        input_free_device(input_dev);
 out1:
        return error;
@@ -304,7 +304,7 @@ static void msp430_ir_deinit(struct budget_ci *budget_ci)
        del_timer_sync(&dev->timer);
        ir_input_nokey(dev, &budget_ci->ir.state);
 
-       ir_input_free(dev);
+       ir_input_unregister(dev);
        input_unregister_device(dev);
 }
 
index 84a957e52c4b4600adcd89b47a12abfde4703080..0e1a7aabefbace9259ec55bb21c539da9966cd71 100644 (file)
@@ -403,7 +403,7 @@ int bttv_input_init(struct bttv *btv)
        bttv_ir_stop(btv);
        btv->remote = NULL;
  err_out_free:
-       ir_input_free(input_dev);
+       ir_input_unregister(input_dev);
        input_free_device(input_dev);
        kfree(ir);
        return err;
@@ -415,7 +415,7 @@ void bttv_input_fini(struct bttv *btv)
                return;
 
        bttv_ir_stop(btv);
-       ir_input_free(btv->remote->dev);
+       ir_input_unregister(btv->remote->dev);
        input_unregister_device(btv->remote->dev);
        kfree(btv->remote);
        btv->remote = NULL;
index cd135f01b9c1865eaa7bdc1817e4d08aed6e5fdf..5eba1ec1205b4908ae917d3463fbf1a0a2876721 100644 (file)
@@ -226,7 +226,7 @@ err_out_stop:
        cx231xx_ir_stop(ir);
        dev->ir = NULL;
 err_out_free:
-       ir_input_free(input_dev);
+       ir_input_unregister(input_dev);
        input_free_device(input_dev);
        kfree(ir);
        return err;
@@ -241,7 +241,7 @@ int cx231xx_ir_fini(struct cx231xx *dev)
                return 0;
 
        cx231xx_ir_stop(ir);
-       ir_input_free(ir->input);
+       ir_input_unregister(ir->input);
        input_unregister_device(ir->input);
        kfree(ir);
 
index 469e083dd5f8973dd0919c8932d0e6da4813005f..2a5e4d959e8e7c49f1952aa5eb04168987932a37 100644 (file)
@@ -407,7 +407,7 @@ err_out_stop:
        cx23885_input_ir_stop(dev);
        dev->ir_input = NULL;
 err_out_free:
-       ir_input_free(input_dev);
+       ir_input_unregister(input_dev);
        input_free_device(input_dev);
        kfree(ir);
        return ret;
@@ -420,7 +420,7 @@ void cx23885_input_fini(struct cx23885_dev *dev)
 
        if (dev->ir_input == NULL)
                return;
-       ir_input_free(dev->ir_input->dev);
+       ir_input_unregister(dev->ir_input->dev);
        input_unregister_device(dev->ir_input->dev);
        kfree(dev->ir_input);
        dev->ir_input = NULL;
index 92b8cdf9fb815296ee102cffe98666416bafe192..d4dc2c2a3cbc4750c544080ab18c7018484d7679 100644 (file)
@@ -393,7 +393,7 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
        cx88_ir_stop(core, ir);
        core->ir = NULL;
  err_out_free:
-       ir_input_free(input_dev);
+       ir_input_unregister(input_dev);
        input_free_device(input_dev);
        kfree(ir);
        return err;
@@ -408,7 +408,7 @@ int cx88_ir_fini(struct cx88_core *core)
                return 0;
 
        cx88_ir_stop(core, ir);
-       ir_input_free(ir->input);
+       ir_input_unregister(ir->input);
        input_unregister_device(ir->input);
        kfree(ir);
 
index 5ddeb421ed586270216817401ea2e31d740606e1..9dc4e142726b0bc48d331a40b06327e01fe5d971 100644 (file)
@@ -422,7 +422,7 @@ int em28xx_ir_init(struct em28xx *dev)
        em28xx_ir_stop(ir);
        dev->ir = NULL;
  err_out_free:
-       ir_input_free(input_dev);
+       ir_input_unregister(input_dev);
        input_free_device(input_dev);
        kfree(ir);
        return err;
@@ -437,7 +437,7 @@ int em28xx_ir_fini(struct em28xx *dev)
                return 0;
 
        em28xx_ir_stop(ir);
-       ir_input_free(ir->input);
+       ir_input_unregister(ir->input);
        input_unregister_device(ir->input);
        kfree(ir);
 
index 2856e780772e42245469baac7fa63328db4ff194..9d8e78dc614e5d15f242f7b3c8e2b5e52801efd5 100644 (file)
@@ -460,7 +460,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
        return 0;
 
  err_out_free:
-       ir_input_free(input_dev);
+       ir_input_unregister(input_dev);
        input_free_device(input_dev);
        kfree(ir);
        return err;
@@ -474,7 +474,7 @@ static int ir_remove(struct i2c_client *client)
        cancel_delayed_work_sync(&ir->work);
 
        /* unregister device */
-       ir_input_free(ir->input);
+       ir_input_unregister(ir->input);
        input_unregister_device(ir->input);
 
        /* free memory */
index 411a8410620e616b2d978630dae80f7d00453d32..5093e7a0d58cb7b7c315d0ef86e91baf0b937b29 100644 (file)
@@ -742,7 +742,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
        saa7134_ir_stop(dev);
        dev->remote = NULL;
  err_out_free:
-       ir_input_free(input_dev);
+       ir_input_unregister(input_dev);
        input_free_device(input_dev);
        kfree(ir);
        return err;
@@ -754,7 +754,7 @@ void saa7134_input_fini(struct saa7134_dev *dev)
                return;
 
        saa7134_ir_stop(dev);
-       ir_input_free(dev->remote->dev);
+       ir_input_unregister(dev->remote->dev);
        input_unregister_device(dev->remote->dev);
        kfree(dev->remote);
        dev->remote = NULL;
index ea76c199b67dbb7bf8f21bfd060b304fc0faf9d0..299d201e13396998835cb8be4c08c9c48be5777d 100644 (file)
@@ -57,6 +57,6 @@ int ir_set_keycode_table(struct input_dev *input_dev,
 int ir_roundup_tablesize(int n_elems);
 int ir_input_register(struct input_dev *dev,
                      struct ir_scancode_table *ir_codes);
-void ir_input_free(struct input_dev *input_dev);
+void ir_input_unregister(struct input_dev *input_dev);
 
 #endif