]> git.baikalelectronics.ru Git - kernel.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)
commiteb550a0a8205147f4ccddfb3ccb3ad4b8939ab20
tree142c42d64707914aea0b6194322c3cd6db47c9c3
parentbcf390309c7b03924c6036b0df4427a993bef88f
[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