[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)
commit70143984dd2c714386ee2d6c0f650bff75873d75
tree39446cf67f9084b122bc5ddd415969c634336fea
parent6fa99e1af1981d9a57cc73b5c2f05903f18413c1
[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