diff mbox series

[2/3] media: iguanair: no need for reset after IR receiver enable

Message ID 831d12fe5ec195c27a4ebe1c8ae562f525df54d4.1638266939.git.sean@mess.org (mailing list archive)
State New, archived
Headers show
Series [1/3] media: lirc: always send timeout reports | expand

Commit Message

Sean Young Nov. 30, 2021, 10:10 a.m. UTC
An IR reset is only used when the IR hardware reports an error.

Signed-off-by: Sean Young <sean@mess.org>
---
 drivers/media/rc/iguanair.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/media/rc/iguanair.c b/drivers/media/rc/iguanair.c
index 84949baf9f6b..f8d080e41f4c 100644
--- a/drivers/media/rc/iguanair.c
+++ b/drivers/media/rc/iguanair.c
@@ -262,9 +262,6 @@  static int iguanair_receiver(struct iguanair *ir, bool enable)
 	ir->packet->header.direction = DIR_OUT;
 	ir->packet->header.cmd = enable ? CMD_RECEIVER_ON : CMD_RECEIVER_OFF;
 
-	if (enable)
-		ir_raw_event_reset(ir->rc);
-
 	return iguanair_send(ir, sizeof(ir->packet->header));
 }