[PATCH] libertas: move vendor & product id's into if_usb.c
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Fri, 25 May 2007 04:11:58 +0000 (00:11 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jun 2007 18:28:36 +0000 (14:28 -0400)
For me it looks cleaner, because it removes one level of indirection.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_usb.c
drivers/net/wireless/libertas/if_usb.h

index 6bc78bb8d1a29ebaf1cc0bf50bc5c86f77fc116d..38063de9da43467b9cc4dbf79f4d3c12086894d6 100644 (file)
@@ -19,12 +19,8 @@ static const char usbdriver_name[] = "usb8xxx";
 
 static struct usb_device_id if_usb_table[] = {
        /* Enter the device signature inside */
-       {
-               USB_DEVICE(USB8388_VID_1, USB8388_PID_1),
-       },
-       {
-               USB_DEVICE(USB8388_VID_2, USB8388_PID_2),
-       },
+       { USB_DEVICE(0x1286, 0x2001) },
+       { USB_DEVICE(0x05a3, 0x8388) },
        {}      /* Terminating entry */
 };
 
index 170dfe6809f5eb1cd9e4ff552dc6edad0651188d..e994d75c52509185a04b30fb9ae45a8c3139895d 100644 (file)
@@ -7,11 +7,6 @@
 
 #define IPFIELD_ALIGN_OFFSET   2
 
-#define USB8388_VID_1  0x1286
-#define USB8388_PID_1  0x2001
-#define USB8388_VID_2  0x05a3
-#define USB8388_PID_2  0x8388
-
 #define BOOT_CMD_FW_BY_USB     0x01
 #define BOOT_CMD_FW_IN_EEPROM  0x02
 #define BOOT_CMD_UPDATE_BOOT2  0x03