]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5121): Proper vendor/device ID for the CinergyT2 input device
authorTino Keitel <tino.keitel@tikei.de>
Mon, 22 Jan 2007 21:33:07 +0000 (18:33 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:48 +0000 (13:34 -0200)
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>
drivers/media/dvb/cinergyT2/cinergyT2.c

index d64b96cb0c469ea9e325eca7e557e0f084ce7c39..a6cbbdd262d6212adc1b4879685e722287d0056d 100644 (file)
@@ -819,6 +819,11 @@ static int cinergyt2_register_rc(struct cinergyt2 *cinergyt2)
                set_bit(rc_keys[i + 2], input_dev->keybit);
        input_dev->keycodesize = 0;
        input_dev->keycodemax = 0;
+       input_dev->id.bustype = BUS_USB;
+       input_dev->id.vendor = cinergyt2->udev->descriptor.idVendor;
+       input_dev->id.product = cinergyt2->udev->descriptor.idProduct;
+       input_dev->id.version = 1;
+       input_dev->cdev.dev = &cinergyt2->udev->dev;
 
        err = input_register_device(input_dev);
        if (err) {