linux/drivers/media
Srinivas Kandagatla 8b2ff32049 [media] media: rc: Add rc_open/close and use count to rc_dev
This patch adds user count to rc_dev structure, the reason to add this
new member is to allow other code like lirc to open rc device directly.
In the existing code, rc device is only opened by input subsystem which
works ok if we have any input drivers to match. But in case like lirc
where there will be no input driver, rc device will be never opened.
Having this user count variable will be usefull to allow rc device to be
opened from code other than rc-main.
This patch also adds rc_open and rc_close functions for other drivers
like lirc to open and close rc devices. This functions safely increment
and decrement the user count. Other driver wanting to open rc device
should call rc_open and rc_close, rather than directly modifying the
rc_dev structure.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-07-31 16:28:01 -03:00
..
common [media] tveeprom: remove v4l2-chip-ident.h include 2013-06-17 08:48:03 -03:00
dvb-core [media] dib0700: add support for PCTV 2002e & PCTV 2002e SE 2013-07-22 07:48:11 -03:00
dvb-frontends Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-07-13 12:09:57 -07:00
firewire firewire: introduce fw_driver.probe and .remove methods 2013-06-09 18:15:00 +02:00
i2c [media] ml86v7667: override default field interlace order 2013-07-26 13:30:11 -03:00
mmc
parport [media] bw-qcam: fix timestamp handling 2013-05-27 09:30:19 -03:00
pci [media] cx23885: Fix TeVii S471 regression since introduction of ts2020 2013-07-30 17:23:24 -03:00
platform [media] coda: add CODA7541 decoding support 2013-07-31 15:56:44 -03:00
radio [media] radio-aztech: Implement signal strength detection and fix stereo detection 2013-07-26 13:34:09 -03:00
rc [media] media: rc: Add rc_open/close and use count to rc_dev 2013-07-31 16:28:01 -03:00
tuners Merge branch 'v4l_for_linus' into patchwork 2013-06-25 07:25:09 -03:00
usb [media] rc: allowed_protos now is a bit field 2013-07-30 17:01:13 -03:00
v4l2-core [media] V4L: Merge struct v4l2_async_subdev_list with struct v4l2_subdev 2013-07-30 15:54:56 -03:00
Kconfig [media] Fix build when drivers are builtin and frontend modules 2013-06-20 10:35:53 -03:00
Makefile
media-device.c [media] media: info leak in __media_device_enum_links() 2013-06-12 18:52:45 -03:00
media-devnode.c
media-entity.c [media] media: Add a function removing all links of a media entity 2013-06-19 08:59:54 -03:00