]> git.baikalelectronics.ru Git - kernel.git/commit
[media] lirc_dev: allow bufferless driver registration
authorAndi Shyti <andi.shyti@samsung.com>
Wed, 6 Jul 2016 09:01:14 +0000 (06:01 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 17:54:58 +0000 (14:54 -0300)
commit898b6432d791966154fa8a21e5ff162a1a86ba05
tree39446cf67f9084b122bc5ddd415969c634336fea
parentc529ad092e7929469fb28be828d168f45a91919d
[media] lirc_dev: allow bufferless driver registration

Transmitters don't necessarily need to have a FIFO managed buffer
for their transfers.

When registering the driver, before allocating the buffer, check
whether the device is a transmitter or receiver. Allocate the
buffer only for receivers.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/lirc_dev.c