diff options
Diffstat (limited to 'drivers/media/IR/ir-nec-decoder.c')
-rw-r--r-- | drivers/media/IR/ir-nec-decoder.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/IR/ir-nec-decoder.c b/drivers/media/IR/ir-nec-decoder.c index d597421d6547..70993f79c8a2 100644 --- a/drivers/media/IR/ir-nec-decoder.c +++ b/drivers/media/IR/ir-nec-decoder.c | |||
@@ -54,8 +54,9 @@ static int ir_nec_decode(struct input_dev *input_dev, struct ir_raw_event ev) | |||
54 | if (!(ir_dev->raw->enabled_protocols & IR_TYPE_NEC)) | 54 | if (!(ir_dev->raw->enabled_protocols & IR_TYPE_NEC)) |
55 | return 0; | 55 | return 0; |
56 | 56 | ||
57 | if (IS_RESET(ev)) { | 57 | if (!is_timing_event(ev)) { |
58 | data->state = STATE_INACTIVE; | 58 | if (ev.reset) |
59 | data->state = STATE_INACTIVE; | ||
59 | return 0; | 60 | return 0; |
60 | } | 61 | } |
61 | 62 | ||