shuttleVFD driver: fix VendorID, support newer models (Miska Sulander)

This commit is contained in:
marschap
2007-11-11 14:18:04 +00:00
parent a21f727566
commit 3dec67f9f1
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ MODULE_EXPORT int shuttleVFD_init(Driver *drvthis) {
struct usb_device *dev;
for (dev = bus->devices; dev != NULL; dev = dev->next) {
if (dev->descriptor.idVendor == SHUTTLE_VFD_VENDOR_ID &&
dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID) {
(dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID1 || dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID2)) {
p->dev = usb_open(dev);
}
}
+4 -2
View File
@@ -56,8 +56,10 @@ MODULE_EXPORT int shuttleVFD_cellheight(Driver *drvthis);
#define SHUTTLE_VFD_CELLHEIGHT 8
// VFD USB properties
#define SHUTTLE_VFD_VENDOR_ID 0x1308
#define SHUTTLE_VFD_PRODUCT_ID 0x0003
#define SHUTTLE_VFD_VENDOR_ID 0x051c
#define SHUTTLE_VFD_PRODUCT_ID1 0x0003
// IR-receiver included in this model
#define SHUTTLE_VFD_PRODUCT_ID2 0x0005
#define SHUTTLE_VFD_INTERFACE_NUM 1
// VFD USB control message