]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
[media] lirc_dev: store cdev in irctl, up maxdevs
authorJarod Wilson <jarod@redhat.com>
Fri, 27 May 2011 19:56:50 +0000 (16:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 11 Jun 2011 12:03:20 +0000 (09:03 -0300)
commit8de111e27688798623b9e9062235bb0cac29f599
tree20e4d812e0b2920eb7936ba41015cbbe0410fd2d
parent04f561ff8714c89733dcf1d178b64d100d5a084a
[media] lirc_dev: store cdev in irctl, up maxdevs

Store the cdev pointer in struct irctl, allocated dynamically as needed,
rather than having a static array. At the same time, recycle some of the
saved memory to nudge the maximum number of lirc devices supported up a
ways -- its not that uncommon these days, now that we have the rc-core
lirc bridge driver, to see a system with at least 4 raw IR receivers.
(consider a mythtv backend with several video capture devices and the
possible need for IR transmit hardware).

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/lirc_dev.c
include/media/lirc_dev.h