patch-2.4.0-test11 linux/drivers/usb/mdc800.c
Next file: linux/drivers/usb/microtek.c
Previous file: linux/drivers/usb/ibmcam.c
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Sat Nov 11 18:17:09 2000
- Orig file:
v2.4.0-test10/linux/drivers/usb/mdc800.c
- Orig date:
Tue Oct 31 12:42:27 2000
diff -u --recursive --new-file v2.4.0-test10/linux/drivers/usb/mdc800.c linux/drivers/usb/mdc800.c
@@ -370,7 +370,8 @@
/*
* Callback to search the Mustek MDC800 on the USB Bus
*/
-static void* mdc800_usb_probe (struct usb_device *dev ,unsigned int ifnum )
+static void* mdc800_usb_probe (struct usb_device *dev ,unsigned int ifnum,
+ const struct usb_device_id *id)
{
int i,j;
struct usb_interface_descriptor *intf_desc;
@@ -379,11 +380,6 @@
dbg ("(mdc800_usb_probe) called.");
- if (dev->descriptor.idVendor != MDC800_VENDOR_ID)
- return 0;
- if (dev->descriptor.idProduct != MDC800_PRODUCT_ID)
- return 0;
-
if (mdc800->dev != 0)
{
warn ("only one Mustek MDC800 is supported.");
@@ -873,17 +869,23 @@
+static struct usb_device_id mdc800_table [] = {
+ { idVendor: MDC800_VENDOR_ID, idProduct: MDC800_PRODUCT_ID },
+ { } /* Terminating entry */
+};
+
+MODULE_DEVICE_TABLE (usb, mdc800_table);
/*
* USB Driver Struct for this device
*/
static struct usb_driver mdc800_usb_driver =
{
- "mdc800",
- mdc800_usb_probe,
- mdc800_usb_disconnect,
- { 0,0 },
- &mdc800_device_ops,
- MDC800_DEVICE_MINOR_BASE
+ name: "mdc800",
+ probe: mdc800_usb_probe,
+ disconnect: mdc800_usb_disconnect,
+ fops: &mdc800_device_ops,
+ minor: MDC800_DEVICE_MINOR_BASE,
+ id_table: mdc800_table
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)