aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/rc/ir-sanyo-decoder.c
diff options
context:
space:
mode:
authorSean Young2022-01-15 11:12:35 +0100
committerMauro Carvalho Chehab2022-01-28 19:32:50 +0100
commit950170d6d2a5d3c0c959696d2440e5c8dfd02896 (patch)
tree691a5917c98153c21e7198db271173118c3342a0 /drivers/media/rc/ir-sanyo-decoder.c
parentb2a90f4fcb146d0e033203ab646f0fd22cfa947f (diff)
media: rc-core: rename ir_raw_event_reset to ir_raw_event_overflow
The driver report a reset event when the hardware reports and overflow. There is no reason to have a generic "reset" event. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/rc/ir-sanyo-decoder.c')
-rw-r--r--drivers/media/rc/ir-sanyo-decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/rc/ir-sanyo-decoder.c b/drivers/media/rc/ir-sanyo-decoder.c
index bfc181be1044..2bc98c342882 100644
--- a/drivers/media/rc/ir-sanyo-decoder.c
+++ b/drivers/media/rc/ir-sanyo-decoder.c
@@ -51,8 +51,8 @@ static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev)
u8 command, not_command;
if (!is_timing_event(ev)) {
- if (ev.reset) {
- dev_dbg(&dev->dev, "SANYO event reset received. reset to state 0\n");
+ if (ev.overflow) {
+ dev_dbg(&dev->dev, "SANYO event overflow received. reset to state 0\n");
data->state = STATE_INACTIVE;
}
return 0;