diff options
author | David Härdeman <david@hardeman.nu> | 2012-08-25 16:46:52 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-25 12:09:10 -0400 |
commit | 30cedcf34f0309ea1ad6e0fdf7a52fcf37985658 (patch) | |
tree | 3307f959a006e5e8eac21cd14091300bc2af90c2 /drivers/media/rc/winbond-cir.c | |
parent | 8ac456495a33d9466076fea94594181ceefb76d9 (diff) |
[media] winbond-cir: correctness fix
This is a minor correctness fix for the duration calculation in
winbond-cir (the read value should be incremented by one).
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/winbond-cir.c')
-rw-r--r-- | drivers/media/rc/winbond-cir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media/rc/winbond-cir.c index 54ee34872d14..29e6769b91a8 100644 --- a/drivers/media/rc/winbond-cir.c +++ b/drivers/media/rc/winbond-cir.c | |||
@@ -358,7 +358,7 @@ wbcir_irq_rx(struct wbcir_data *data, struct pnp_dev *device) | |||
358 | if (data->rxstate == WBCIR_RXSTATE_ERROR) | 358 | if (data->rxstate == WBCIR_RXSTATE_ERROR) |
359 | continue; | 359 | continue; |
360 | rawir.pulse = irdata & 0x80 ? false : true; | 360 | rawir.pulse = irdata & 0x80 ? false : true; |
361 | rawir.duration = US_TO_NS((irdata & 0x7F) * 10); | 361 | rawir.duration = US_TO_NS(((irdata & 0x7F) + 1) * 10); |
362 | ir_raw_event_store_with_filter(data->dev, &rawir); | 362 | ir_raw_event_store_with_filter(data->dev, &rawir); |
363 | } | 363 | } |
364 | 364 | ||