summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-01-22 16:33:07 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-01-22 16:33:07 -0500
commit689e43512980c5225bd47090dbf7690a250ae8f0 (patch)
tree0eaf63903d3614d00796819573e347770d028034 /linux/drivers/media
parenteeb2d15e79aeabf08344067463107020c173a427 (diff)
downloadmediapointer-dvb-s2-689e43512980c5225bd47090dbf7690a250ae8f0.tar.gz
mediapointer-dvb-s2-689e43512980c5225bd47090dbf7690a250ae8f0.tar.bz2
proper vendor/device ID for the CinergyT2 input device
From: Tino Keitel <tino.keitel@tikei.de> 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>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index 9c0eff865..0de98c3eb 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -864,6 +864,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) {