media: lirc: simplify gap calculation
authorSean Young <sean@mess.org>
Thu, 13 Jan 2022 11:29:01 +0000 (12:29 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 24 Jan 2022 00:38:32 +0000 (01:38 +0100)
commitd49a14a946db0a8e0713aa43034879f967ab75e2
tree24ed3ba39f0c1b81e6b0b3afedcaa6763c8115ec
parent52cdb013036391d9d87aba5b4fc49cdfc6ea4b23
media: lirc: simplify gap calculation

When a driver reports a timeout, no more IR activity will be reported
until the next pulse. A space is inserted between the timeout and the
next pulse, based on ktime.

The timeout reports already a duration, so this duration should not be
added to the gap. Otherwise there is no change to the functionality.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/rc/lirc_dev.c
include/media/rc-core.h