aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2010-06-07 15:32:33 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 13:53:59 -0400
commit0dc50942d6f23989ffb3024aa2271941ec44aea8 (patch)
tree1aa883b533146c23c7b79097d64b04e4535e12ca /drivers/media
parent3bbd3f2d09de39fe6c43b118a32ba5155bb3d25e (diff)
V4L/DVB: ir-core: partially convert ir-kbd-i2c.c to not use ir-functions.c
Partially convert drivers/media/video/ir-kbd-i2c.c to not use ir-functions.c Signed-off-by: David Härdeman <david@hardeman.nu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/ir-kbd-i2c.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c
index 29d439742653..27ae8bbfb477 100644
--- a/drivers/media/video/ir-kbd-i2c.c
+++ b/drivers/media/video/ir-kbd-i2c.c
@@ -47,7 +47,7 @@
47#include <linux/i2c-id.h> 47#include <linux/i2c-id.h>
48#include <linux/workqueue.h> 48#include <linux/workqueue.h>
49 49
50#include <media/ir-common.h> 50#include <media/ir-core.h>
51#include <media/ir-kbd-i2c.h> 51#include <media/ir-kbd-i2c.h>
52 52
53/* ----------------------------------------------------------------------- */ 53/* ----------------------------------------------------------------------- */
@@ -272,11 +272,8 @@ static void ir_key_poll(struct IR_i2c *ir)
272 return; 272 return;
273 } 273 }
274 274
275 if (0 == rc) { 275 if (rc)
276 ir_input_nokey(ir->input, &ir->ir); 276 ir_keydown(ir->input, ir_key, 0);
277 } else {
278 ir_input_keydown(ir->input, &ir->ir, ir_key);
279 }
280} 277}
281 278
282static void ir_work(struct work_struct *work) 279static void ir_work(struct work_struct *work)
@@ -439,10 +436,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
439 dev_name(&client->dev)); 436 dev_name(&client->dev));
440 437
441 /* init + register input device */ 438 /* init + register input device */
442 err = ir_input_init(input_dev, &ir->ir, ir_type); 439 ir->ir_type = ir_type;
443 if (err < 0)
444 goto err_out_free;
445
446 input_dev->id.bustype = BUS_I2C; 440 input_dev->id.bustype = BUS_I2C;
447 input_dev->name = ir->name; 441 input_dev->name = ir->name;
448 input_dev->phys = ir->phys; 442 input_dev->phys = ir->phys;