summaryrefslogtreecommitdiff
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2010-10-25 06:05:29 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-26 00:54:28 +0400
commitdc69798447173a6b711fe36b714892dd2e880297 (patch)
treec9b16c9dd97b95075800ce6d5fa187d58a5671ff /drivers/media/dvb
parent910f5f05f99c1ffbb484c4e6eb2a460e7a08e2d7 (diff)
downloadlinux-dc69798447173a6b711fe36b714892dd2e880297.tar.xz
[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 <maximlevitsky@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/siano/smsir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/siano/smsir.c b/drivers/media/dvb/siano/smsir.c
index d0e4639ee9db..a27c44a8af5a 100644
--- a/drivers/media/dvb/siano/smsir.c
+++ b/drivers/media/dvb/siano/smsir.c
@@ -40,7 +40,7 @@ void sms_ir_event(struct smscore_device_t *coredev, const char *buf, int len)
const s32 *samples = (const void *)buf;
for (i = 0; i < len >> 2; i++) {
- struct ir_raw_event ev;
+ DEFINE_IR_RAW_EVENT(ev);
ev.duration = abs(samples[i]) * 1000; /* Convert to ns */
ev.pulse = (samples[i] > 0) ? false : true;