linux/drivers/media/rc
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
..
keymaps [media] rc: Add rc-delock-61959 2013-05-21 08:18:19 -03:00
Kconfig [media] ir: IR_RX51 only works on OMAP2 2013-03-18 21:02:04 -03:00
Makefile
ati_remote.c
ene_ir.c [media] ene_ir: disable the device if wake is disabled 2013-07-29 11:48:26 -03:00
ene_ir.h [media] ene_ir: don't use pr_debug after all 2013-07-29 11:49:45 -03:00
fintek-cir.c Merge branch 'v4l_for_linus' into staging/for_v3.9 2013-01-24 18:49:18 -02:00
fintek-cir.h
gpio-ir-recv.c [media] rc: gpio-ir-recv: Remove redundant platform_set_drvdata() 2013-05-27 09:30:59 -03:00
iguanair.c [media] lirc: make transmit interface consistent 2013-07-30 17:04:23 -03:00
imon.c [media] media/rc/imon.c: kill urb when send_packet() is interrupted 2013-04-23 17:50:34 -03:00
ir-jvc-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-lirc-codec.c [media] lirc: validate transmission ir data 2013-07-30 17:03:16 -03:00
ir-mce_kbd-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-nec-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-raw.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-rc5-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-rc5-sz-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-rc6-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-rx51.c [media] Media: remove incorrect __init/__exit markups 2013-03-18 16:59:59 -03:00
ir-sanyo-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-sony-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ite-cir.c [media] rc: ite-cir: fix potential double free in ite_probe() 2013-04-14 21:37:53 -03:00
ite-cir.h
lirc_dev.c constify a bunch of struct file_operations instances 2013-04-09 14:16:20 -04:00
mceusb.c [media] mceusb: add some missing cmd sizes 2013-04-16 18:53:34 -03:00
nuvoton-cir.c [media] rc: nuvoton-cir: fix potential double free in nvt_probe() 2013-04-14 21:38:05 -03:00
nuvoton-cir.h
rc-core-priv.h [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
rc-loopback.c
rc-main.c [media] media: rc: Add rc_open/close and use count to rc_dev 2013-07-31 16:28:01 -03:00
redrat3.c [media] lirc: make transmit interface consistent 2013-07-30 17:04:23 -03:00
streamzap.c Drivers: media: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
ttusbir.c [media] MEDIA: ttusbir, fix double free 2013-04-08 06:54:01 -03:00
winbond-cir.c [media] rc: winbond-cir: fix potential double free in wbcir_probe() 2013-04-14 21:37:37 -03:00