The patch number 8271 was added via Michael Krufky <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Steven Toth  <[EMAIL PROTECTED]>
sms1xxx: usbvid table


Signed-off-by: Steven Toth <[EMAIL PROTECTED]>
Signed-off-by: Michael Krufky <[EMAIL PROTECTED]>


---

 linux/drivers/media/mdtv/smsusb.c |   23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

diff -r cf6f545ea298 -r abc7cf6ea832 linux/drivers/media/mdtv/smsusb.c
--- a/linux/drivers/media/mdtv/smsusb.c Thu May 22 14:06:41 2008 -0400
+++ b/linux/drivers/media/mdtv/smsusb.c Thu May 22 14:07:39 2008 -0400
@@ -26,11 +26,6 @@
 
 #include "smscoreapi.h"
 
-#define USB_VID_SIANO  0x187f
-#define USB_PID_0010   0x0010
-#define USB_PID_0100   0x0100
-#define USB_PID_0200   0x0200
-
 #define USB1_BUFFER_SIZE               0x1000
 #define USB2_BUFFER_SIZE               0x4000
 
@@ -57,14 +52,6 @@ typedef struct _smsusb_device
        int                             response_alignment;
        int                             buffer_size;
 } *psmsusb_device_t;
-
-static struct usb_device_id smsusb_id_table [] = {
-       { USB_DEVICE(USB_VID_SIANO, USB_PID_0010) },
-       { USB_DEVICE(USB_VID_SIANO, USB_PID_0100) },
-       { USB_DEVICE(USB_VID_SIANO, USB_PID_0200) },
-       { }             /* Terminating entry */
-};
-MODULE_DEVICE_TABLE (usb, smsusb_id_table);
 
 int smsusb_submit_urb(smsusb_device_t* dev, smsusb_urb_t* surb);
 
@@ -319,7 +306,7 @@ int smsusb_init_device(struct usb_interf
 
        switch (dev->udev->descriptor.idProduct)
        {
-               case USB_PID_0100:
+               case 0x100:
                        dev->buffer_size = USB1_BUFFER_SIZE;
 
                        params.setmode_handler = smsusb1_setmode;
@@ -418,6 +405,14 @@ void smsusb_disconnect(struct usb_interf
        smsusb_term_device(intf);
 }
 
+static struct usb_device_id smsusb_id_table [] = {
+       { USB_DEVICE(0x187F, 0x0010) },
+       { USB_DEVICE(0x187F, 0x0100) },
+       { USB_DEVICE(0x187F, 0x0200) },
+       { }             /* Terminating entry */
+};
+MODULE_DEVICE_TABLE (usb, smsusb_id_table);
+
 static struct usb_driver smsusb_driver = {
        .name                   = "smsusb",
        .probe                  = smsusb_probe,


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/abc7cf6ea832629ad3786d91e20c1d837cfde8db

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to