[media] ir-kbd-i2c: Make IR debug messages more useful
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
@@ -244,15 +244,17 @@ static void ir_key_poll(struct IR_i2c *ir)
|
|||||||
static u32 ir_key, ir_raw;
|
static u32 ir_key, ir_raw;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
dprintk(2,"ir_poll_key\n");
|
dprintk(3, "%s\n", __func__);
|
||||||
rc = ir->get_key(ir, &ir_key, &ir_raw);
|
rc = ir->get_key(ir, &ir_key, &ir_raw);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
dprintk(2,"error\n");
|
dprintk(2,"error\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc)
|
if (rc) {
|
||||||
|
dprintk(1, "%s: keycode = 0x%04x\n", __func__, ir_key);
|
||||||
rc_keydown(ir->rc, ir_key, 0);
|
rc_keydown(ir->rc, ir_key, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ir_work(struct work_struct *work)
|
static void ir_work(struct work_struct *work)
|
||||||
|
Reference in New Issue
Block a user