From dc69798447173a6b711fe36b714892dd2e880297 Mon Sep 17 00:00:00 2001 From: Maxim Levitsky Date: Sun, 24 Oct 2010 23:05:29 -0300 Subject: [media] IR: initialize ir_raw_event in few more drivers Few drivers still have assumption that ir_raw_event consists of duration and pulse flag. Fix that. Signed-off-by: Maxim Levitsky Signed-off-by: Mauro Carvalho Chehab --- drivers/media/video/cx25840/cx25840-ir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/media/video/cx25840') diff --git a/drivers/media/video/cx25840/cx25840-ir.c b/drivers/media/video/cx25840/cx25840-ir.c index c2b4c14..97a4e9b 100644 --- a/drivers/media/video/cx25840/cx25840-ir.c +++ b/drivers/media/video/cx25840/cx25840-ir.c @@ -706,6 +706,7 @@ static int cx25840_ir_rx_read(struct v4l2_subdev *sd, u8 *buf, size_t count, if (v > IR_MAX_DURATION) v = IR_MAX_DURATION; + init_ir_raw_event(&p->ir_core_data); p->ir_core_data.pulse = u; p->ir_core_data.duration = v; -- cgit v1.1