]> git.karo-electronics.de Git - linux-beck.git/commit
[media] rc-core: move timeout and checks to lirc
authorDavid Härdeman <david@hardeman.nu>
Thu, 28 Apr 2011 14:14:03 +0000 (11:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 13 Aug 2012 22:59:41 +0000 (19:59 -0300)
commitf8e00d5fa86fbc4462647da162152d4e74db784c
tree142c42d64707914aea0b6194322c3cd6db47c9c3
parent0a67fe458471cc13adeb0e10694e10674bf383eb
[media] rc-core: move timeout and checks to lirc

The lirc TX functionality expects the process which writes (TX) data to
the lirc dev to sleep until the actual data has been transmitted by the
hardware.

Since the same timeout calculation is duplicated in more than one driver
(and would have to be duplicated in even more drivers as they gain TX
support), it makes sense to move this timeout calculation to the lirc
layer instead.

At the same time, centralize some of the sanity checks.

Signed-off-by: David Härdeman <david@hardeman.nu>
Cc: Jarod Wilson <jwilson@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/ir-lirc-codec.c
drivers/media/rc/mceusb.c
drivers/media/rc/rc-loopback.c