]> git.baikalelectronics.ru Git - 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)
commit0bc49fa64593c6085b31583155558ca9a17ea631
tree20e4d812e0b2920eb7936ba41015cbbe0410fd2d
parentffeedc15a3298346deb31afb9d63be60ad16e123
[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