diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-01-21 21:22:18 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-01-21 21:22:18 -0500 |
commit | eeb2d15e79aeabf08344067463107020c173a427 (patch) | |
tree | ad506933696f9574f87586e45d19bf43053e8dcf /linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c | |
parent | a4afacc02da0c558bd2e455a63d16a9c4301e862 (diff) | |
download | mediapointer-dvb-s2-eeb2d15e79aeabf08344067463107020c173a427.tar.gz mediapointer-dvb-s2-eeb2d15e79aeabf08344067463107020c173a427.tar.bz2 |
dvb-usb: Register the bus, vendor and product IDs for remote device
From: Chris Rankin <rankincj@yahoo.com>
This patch writes the USB vendor and product IDs into the /sys/class/input/inputX/id/ files, so
that udev can find them. A rule like this does the trick for me:
KERNEL="event*", SYSFS{../id/vendor}=="2040", SYSFS{../id/product}=="9301",
SYMLINK+="input/dvb-remote"
Signed-off-by: Chris Rankin <rankincj@yahoo.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c index 1a86adbfa..1bee5dfad 100644 --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c @@ -125,6 +125,9 @@ int dvb_usb_remote_init(struct dvb_usb_device *d) input_dev->keycodemax = KEY_MAX; input_dev->name = "IR-receiver inside an USB DVB receiver"; input_dev->phys = d->rc_phys; + input_dev->id.bustype = BUS_USB; + input_dev->id.vendor = d->udev->descriptor.idVendor; + input_dev->id.product = d->udev->descriptor.idProduct; usb_to_input_id(d->udev, &input_dev->id); #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15) input_dev->cdev.dev = &d->udev->dev; |