aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorTino Keitel <tino.keitel@tikei.de>2007-01-22 16:33:07 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:34:48 -0500
commitef7b8b725bdc59fb4a3f781f3e9f546ad01da792 (patch)
tree263925a31eccc981f05ba1b3da0edd8b7341e4c5 /drivers/media
parenta63ad325c337ba634824cefe54f7ac52ee554b72 (diff)
V4L/DVB (5121): Proper vendor/device ID for the CinergyT2 input device
I noticed that udev does not create a symlink for the CinergyT2 remote input device in /dev/input/by-id, which is required if I want to have a unique device name for lircd. The attached patch tries to achive this. However, udev still omits the input device for /dev/input/by-id symlinks. I think something is still not reported correctly. Signed-off-by: Tino Keitel <tino.keitel@tikei.de> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/cinergyT2/cinergyT2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/dvb/cinergyT2/cinergyT2.c b/drivers/media/dvb/cinergyT2/cinergyT2.c
index d64b96cb0c46..a6cbbdd262d6 100644
--- a/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -819,6 +819,11 @@ static int cinergyt2_register_rc(struct cinergyt2 *cinergyt2)
819 set_bit(rc_keys[i + 2], input_dev->keybit); 819 set_bit(rc_keys[i + 2], input_dev->keybit);
820 input_dev->keycodesize = 0; 820 input_dev->keycodesize = 0;
821 input_dev->keycodemax = 0; 821 input_dev->keycodemax = 0;
822 input_dev->id.bustype = BUS_USB;
823 input_dev->id.vendor = cinergyt2->udev->descriptor.idVendor;
824 input_dev->id.product = cinergyt2->udev->descriptor.idProduct;
825 input_dev->id.version = 1;
826 input_dev->cdev.dev = &cinergyt2->udev->dev;
822 827
823 err = input_register_device(input_dev); 828 err = input_register_device(input_dev);
824 if (err) { 829 if (err) {