[media] media: lirc_dev: make chunk_size and buffer_size mandatory
authorDavid Härdeman <david@hardeman.nu>
Sun, 25 Jun 2017 12:31:45 +0000 (09:31 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 16:53:32 +0000 (13:53 -0300)
commitb145ef94f63e02c2615ffde61a376b53f3367bc6
tree259deba6c2ad61c67adf9ca78253e967c56ae55d
parent615cd3fe6cccb950b46728120009a1805cce908e
[media] media: lirc_dev: make chunk_size and buffer_size mandatory

Make setting chunk_size and buffer_size mandatory for drivers which
expect lirc_dev to allocate the lirc_buffer (i.e. ir-lirc-codec) and
don't set them in lirc-zilog (which creates its own buffer).

Also remove an unnecessary copy of chunk_size in struct irctl (the
same information is already available from struct lirc_buffer).

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/lirc_dev.c
drivers/staging/media/lirc/lirc_zilog.c
include/media/lirc_dev.h