linux/drivers/media/rc
Paul Bender 5ad1a55542 [media] rc: fix sysfs entry for mceusb and streamzap
When trying to create persistent device names for mceusb and streamzap
devices, I noticed that their respective drivers are not creating the rc
device as a child of the USB device. Rather it creates it as virtual
device. As a result, udev cannot use the USB device information to
create persistent device names for event and lirc devices associated
with the rc device. Not having persistent device names makes it more

difficult to make use of the devices in userspace as their names can
change.

Forward-ported to media_tree staging/for_v2.6.38 and tested with
both streamzap and mceusb devices:
$ ll /dev/input/by-id/
...
lrwxrwxrwx. 1 root root 9 Nov 17 17:06 usb-Streamzap__Inc._Streamzap_Remote_Control-event-if00 -> ../event6
lrwxrwxrwx. 1 root root 9 Nov 17 17:05 usb-Topseed_Technology_Corp._eHome_Infrared_Transceiver_TS000BzY-event-if00 -> ../event5
Previously, nada.

Signed-off-by: Paul Bender <pebender@gmail.com>
Tested-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-12-29 08:16:57 -02:00
..
keymaps [media] Fix rc-tbs-nec table after converting the cx88 driver to ir-core 2010-12-29 08:16:55 -02:00
Kconfig [media] rc: rename the remaining things to rc_core 2010-12-29 08:16:50 -02:00
Makefile [media] rc: Rename IR raw interface to ir-raw.c 2010-12-29 08:16:52 -02:00
ene_ir.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ene_ir.h [media] ir-core: make struct rc_dev the primary interface 2010-12-29 08:16:37 -02:00
imon.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-jvc-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-lirc-codec.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-nec-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-raw.c [media] rc-core: fix some leftovers from the renaming patches 2010-12-29 08:16:54 -02:00
ir-rc5-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-rc5-sz-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-rc6-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
ir-sony-decoder.c [media] rc: Rename remote controller type to rc_type instead of ir_type 2010-12-29 08:16:50 -02:00
lirc_dev.c [media] lirc_dev: add some __user annotations 2010-12-29 08:16:55 -02:00
mceusb.c [media] rc: fix sysfs entry for mceusb and streamzap 2010-12-29 08:16:57 -02:00
nuvoton-cir.c [media] drivers/media: nuvoton: fix chip id probe v2 2010-12-29 08:16:57 -02:00
nuvoton-cir.h [media] ir-core: make struct rc_dev the primary interface 2010-12-29 08:16:37 -02:00
rc-core-priv.h [media] rc-core: fix some leftovers from the renaming patches 2010-12-29 08:16:54 -02:00
rc-main.c [media] rc-core: fix some leftovers from the renaming patches 2010-12-29 08:16:54 -02:00
streamzap.c [media] rc: fix sysfs entry for mceusb and streamzap 2010-12-29 08:16:57 -02:00
winbond-cir.c [media] rc: rename the remaining things to rc_core 2010-12-29 08:16:50 -02:00