]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: iguanair: no need for reset after IR receiver enable
authorSean Young <sean@mess.org>
Sat, 27 Nov 2021 13:53:49 +0000 (14:53 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Dec 2021 14:09:12 +0000 (15:09 +0100)
An IR reset is only used when the IR hardware reports an error.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/iguanair.c

index 84949baf9f6b3c2d51555b9e7cc2bc69ecc33290..f8d080e41f4c1fd0e73123e90184aed54339097c 100644 (file)
@@ -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));
 }