Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6bcb2f3 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] ir-kbd-i2c: Make IR debug messages more useful

parent 59aa3460
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -244,16 +244,18 @@ static void ir_key_poll(struct IR_i2c *ir)
	static u32 ir_key, ir_raw;
	int rc;

	dprintk(2,"ir_poll_key\n");
	dprintk(3, "%s\n", __func__);
	rc = ir->get_key(ir, &ir_key, &ir_raw);
	if (rc < 0) {
		dprintk(2,"error\n");
		return;
	}

	if (rc)
	if (rc) {
		dprintk(1, "%s: keycode = 0x%04x\n", __func__, ir_key);
		rc_keydown(ir->rc, ir_key, 0);
	}
}

static void ir_work(struct work_struct *work)
{