diff options
Diffstat (limited to 'drivers')
39 files changed, 60 insertions, 60 deletions
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c index b10ac8409411..2cbdc8f230b8 100644 --- a/drivers/usb/serial/aircable.c +++ b/drivers/usb/serial/aircable.c | |||
@@ -78,7 +78,7 @@ static int debug; | |||
78 | #define DRIVER_DESC "AIRcable USB Driver" | 78 | #define DRIVER_DESC "AIRcable USB Driver" |
79 | 79 | ||
80 | /* ID table that will be registered with USB core */ | 80 | /* ID table that will be registered with USB core */ |
81 | static struct usb_device_id id_table [] = { | 81 | static const struct usb_device_id id_table[] = { |
82 | { USB_DEVICE(AIRCABLE_VID, AIRCABLE_USB_PID) }, | 82 | { USB_DEVICE(AIRCABLE_VID, AIRCABLE_USB_PID) }, |
83 | { }, | 83 | { }, |
84 | }; | 84 | }; |
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index a9c2dec8e3fb..1f75fac81232 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c | |||
@@ -50,7 +50,7 @@ static int debug; | |||
50 | /* usb timeout of 1 second */ | 50 | /* usb timeout of 1 second */ |
51 | #define ARK_TIMEOUT (1*HZ) | 51 | #define ARK_TIMEOUT (1*HZ) |
52 | 52 | ||
53 | static struct usb_device_id id_table [] = { | 53 | static const struct usb_device_id id_table[] = { |
54 | { USB_DEVICE(0x6547, 0x0232) }, | 54 | { USB_DEVICE(0x6547, 0x0232) }, |
55 | { USB_DEVICE(0x18ec, 0x3118) }, /* USB to IrDA adapter */ | 55 | { USB_DEVICE(0x18ec, 0x3118) }, /* USB to IrDA adapter */ |
56 | { }, | 56 | { }, |
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c index a0467bc61627..1295e44e3f1c 100644 --- a/drivers/usb/serial/belkin_sa.c +++ b/drivers/usb/serial/belkin_sa.c | |||
@@ -103,7 +103,7 @@ static int belkin_sa_tiocmset(struct tty_struct *tty, struct file *file, | |||
103 | unsigned int set, unsigned int clear); | 103 | unsigned int set, unsigned int clear); |
104 | 104 | ||
105 | 105 | ||
106 | static struct usb_device_id id_table_combined [] = { | 106 | static const struct usb_device_id id_table_combined[] = { |
107 | { USB_DEVICE(BELKIN_SA_VID, BELKIN_SA_PID) }, | 107 | { USB_DEVICE(BELKIN_SA_VID, BELKIN_SA_PID) }, |
108 | { USB_DEVICE(BELKIN_OLD_VID, BELKIN_OLD_PID) }, | 108 | { USB_DEVICE(BELKIN_OLD_VID, BELKIN_OLD_PID) }, |
109 | { USB_DEVICE(PERACOM_VID, PERACOM_PID) }, | 109 | { USB_DEVICE(PERACOM_VID, PERACOM_PID) }, |
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 6230d24894ff..9f4fed1968b5 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c | |||
@@ -71,7 +71,7 @@ | |||
71 | 71 | ||
72 | static int debug; | 72 | static int debug; |
73 | 73 | ||
74 | static struct usb_device_id id_table [] = { | 74 | static const struct usb_device_id id_table[] = { |
75 | { USB_DEVICE(0x4348, 0x5523) }, | 75 | { USB_DEVICE(0x4348, 0x5523) }, |
76 | { USB_DEVICE(0x1a86, 0x7523) }, | 76 | { USB_DEVICE(0x1a86, 0x7523) }, |
77 | { }, | 77 | { }, |
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index bd254ec97d14..61e15ef07166 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c | |||
@@ -55,7 +55,7 @@ static int cp210x_carrier_raised(struct usb_serial_port *p); | |||
55 | 55 | ||
56 | static int debug; | 56 | static int debug; |
57 | 57 | ||
58 | static struct usb_device_id id_table [] = { | 58 | static const struct usb_device_id id_table[] = { |
59 | { USB_DEVICE(0x0471, 0x066A) }, /* AKTAKOM ACE-1001 cable */ | 59 | { USB_DEVICE(0x0471, 0x066A) }, /* AKTAKOM ACE-1001 cable */ |
60 | { USB_DEVICE(0x0489, 0xE000) }, /* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */ | 60 | { USB_DEVICE(0x0489, 0xE000) }, /* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */ |
61 | { USB_DEVICE(0x0745, 0x1000) }, /* CipherLab USB CCD Barcode Scanner 1000 */ | 61 | { USB_DEVICE(0x0745, 0x1000) }, /* CipherLab USB CCD Barcode Scanner 1000 */ |
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c index b0f6402a91ca..23c8bd6dedeb 100644 --- a/drivers/usb/serial/cyberjack.c +++ b/drivers/usb/serial/cyberjack.c | |||
@@ -70,7 +70,7 @@ static void cyberjack_read_int_callback(struct urb *urb); | |||
70 | static void cyberjack_read_bulk_callback(struct urb *urb); | 70 | static void cyberjack_read_bulk_callback(struct urb *urb); |
71 | static void cyberjack_write_bulk_callback(struct urb *urb); | 71 | static void cyberjack_write_bulk_callback(struct urb *urb); |
72 | 72 | ||
73 | static struct usb_device_id id_table [] = { | 73 | static const struct usb_device_id id_table[] = { |
74 | { USB_DEVICE(CYBERJACK_VENDOR_ID, CYBERJACK_PRODUCT_ID) }, | 74 | { USB_DEVICE(CYBERJACK_VENDOR_ID, CYBERJACK_PRODUCT_ID) }, |
75 | { } /* Terminating entry */ | 75 | { } /* Terminating entry */ |
76 | }; | 76 | }; |
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index b19e16a539e2..eee87268ae5b 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -87,24 +87,24 @@ static int unstable_bauds; | |||
87 | #define CYPRESS_BUF_SIZE 1024 | 87 | #define CYPRESS_BUF_SIZE 1024 |
88 | #define CYPRESS_CLOSING_WAIT (30*HZ) | 88 | #define CYPRESS_CLOSING_WAIT (30*HZ) |
89 | 89 | ||
90 | static struct usb_device_id id_table_earthmate [] = { | 90 | static const struct usb_device_id id_table_earthmate[] = { |
91 | { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) }, | 91 | { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) }, |
92 | { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB_LT20) }, | 92 | { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB_LT20) }, |
93 | { } /* Terminating entry */ | 93 | { } /* Terminating entry */ |
94 | }; | 94 | }; |
95 | 95 | ||
96 | static struct usb_device_id id_table_cyphidcomrs232 [] = { | 96 | static const struct usb_device_id id_table_cyphidcomrs232[] = { |
97 | { USB_DEVICE(VENDOR_ID_CYPRESS, PRODUCT_ID_CYPHIDCOM) }, | 97 | { USB_DEVICE(VENDOR_ID_CYPRESS, PRODUCT_ID_CYPHIDCOM) }, |
98 | { USB_DEVICE(VENDOR_ID_POWERCOM, PRODUCT_ID_UPS) }, | 98 | { USB_DEVICE(VENDOR_ID_POWERCOM, PRODUCT_ID_UPS) }, |
99 | { } /* Terminating entry */ | 99 | { } /* Terminating entry */ |
100 | }; | 100 | }; |
101 | 101 | ||
102 | static struct usb_device_id id_table_nokiaca42v2 [] = { | 102 | static const struct usb_device_id id_table_nokiaca42v2[] = { |
103 | { USB_DEVICE(VENDOR_ID_DAZZLE, PRODUCT_ID_CA42) }, | 103 | { USB_DEVICE(VENDOR_ID_DAZZLE, PRODUCT_ID_CA42) }, |
104 | { } /* Terminating entry */ | 104 | { } /* Terminating entry */ |
105 | }; | 105 | }; |
106 | 106 | ||
107 | static struct usb_device_id id_table_combined [] = { | 107 | static const struct usb_device_id id_table_combined[] = { |
108 | { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) }, | 108 | { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) }, |
109 | { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB_LT20) }, | 109 | { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB_LT20) }, |
110 | { USB_DEVICE(VENDOR_ID_CYPRESS, PRODUCT_ID_CYPHIDCOM) }, | 110 | { USB_DEVICE(VENDOR_ID_CYPRESS, PRODUCT_ID_CYPHIDCOM) }, |
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index 68e80be6b9e1..3b6348414c47 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
@@ -470,18 +470,18 @@ static int digi_read_oob_callback(struct urb *urb); | |||
470 | 470 | ||
471 | static int debug; | 471 | static int debug; |
472 | 472 | ||
473 | static struct usb_device_id id_table_combined [] = { | 473 | static const struct usb_device_id id_table_combined[] = { |
474 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_2_ID) }, | 474 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_2_ID) }, |
475 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_4_ID) }, | 475 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_4_ID) }, |
476 | { } /* Terminating entry */ | 476 | { } /* Terminating entry */ |
477 | }; | 477 | }; |
478 | 478 | ||
479 | static struct usb_device_id id_table_2 [] = { | 479 | static const struct usb_device_id id_table_2[] = { |
480 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_2_ID) }, | 480 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_2_ID) }, |
481 | { } /* Terminating entry */ | 481 | { } /* Terminating entry */ |
482 | }; | 482 | }; |
483 | 483 | ||
484 | static struct usb_device_id id_table_4 [] = { | 484 | static const struct usb_device_id id_table_4[] = { |
485 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_4_ID) }, | 485 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_4_ID) }, |
486 | { } /* Terminating entry */ | 486 | { } /* Terminating entry */ |
487 | }; | 487 | }; |
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c index 7dd0e3eadbe6..d02e604e9cc4 100644 --- a/drivers/usb/serial/empeg.c +++ b/drivers/usb/serial/empeg.c | |||
@@ -93,7 +93,7 @@ static void empeg_init_termios(struct tty_struct *tty); | |||
93 | static void empeg_write_bulk_callback(struct urb *urb); | 93 | static void empeg_write_bulk_callback(struct urb *urb); |
94 | static void empeg_read_bulk_callback(struct urb *urb); | 94 | static void empeg_read_bulk_callback(struct urb *urb); |
95 | 95 | ||
96 | static struct usb_device_id id_table [] = { | 96 | static const struct usb_device_id id_table[] = { |
97 | { USB_DEVICE(EMPEG_VENDOR_ID, EMPEG_PRODUCT_ID) }, | 97 | { USB_DEVICE(EMPEG_VENDOR_ID, EMPEG_PRODUCT_ID) }, |
98 | { } /* Terminating entry */ | 98 | { } /* Terminating entry */ |
99 | }; | 99 | }; |
diff --git a/drivers/usb/serial/funsoft.c b/drivers/usb/serial/funsoft.c index d30f736d2cc5..e21ce9ddfc63 100644 --- a/drivers/usb/serial/funsoft.c +++ b/drivers/usb/serial/funsoft.c | |||
@@ -18,7 +18,7 @@ | |||
18 | 18 | ||
19 | static int debug; | 19 | static int debug; |
20 | 20 | ||
21 | static struct usb_device_id id_table [] = { | 21 | static const struct usb_device_id id_table[] = { |
22 | { USB_DEVICE(0x1404, 0xcddc) }, | 22 | { USB_DEVICE(0x1404, 0xcddc) }, |
23 | { }, | 23 | { }, |
24 | }; | 24 | }; |
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c index 5ac900e5a50e..6bbedfbb0fbc 100644 --- a/drivers/usb/serial/garmin_gps.c +++ b/drivers/usb/serial/garmin_gps.c | |||
@@ -210,7 +210,7 @@ static unsigned char const PRIVATE_REQ[] | |||
210 | 210 | ||
211 | 211 | ||
212 | 212 | ||
213 | static struct usb_device_id id_table [] = { | 213 | static const struct usb_device_id id_table[] = { |
214 | /* the same device id seems to be used by all | 214 | /* the same device id seems to be used by all |
215 | usb enabled GPS devices */ | 215 | usb enabled GPS devices */ |
216 | { USB_DEVICE(GARMIN_VENDOR_ID, 3) }, | 216 | { USB_DEVICE(GARMIN_VENDOR_ID, 3) }, |
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 83443d6306d6..0b1c4732b878 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c | |||
@@ -41,7 +41,7 @@ static struct usb_device_id generic_device_ids[2]; /* Initially all zeroes. */ | |||
41 | 41 | ||
42 | /* we want to look at all devices, as the vendor/product id can change | 42 | /* we want to look at all devices, as the vendor/product id can change |
43 | * depending on the command line argument */ | 43 | * depending on the command line argument */ |
44 | static struct usb_device_id generic_serial_ids[] = { | 44 | static const struct usb_device_id generic_serial_ids[] = { |
45 | {.driver_info = 42}, | 45 | {.driver_info = 42}, |
46 | {} | 46 | {} |
47 | }; | 47 | }; |
diff --git a/drivers/usb/serial/hp4x.c b/drivers/usb/serial/hp4x.c index 431329275133..809379159b0e 100644 --- a/drivers/usb/serial/hp4x.c +++ b/drivers/usb/serial/hp4x.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #define HP_VENDOR_ID 0x03f0 | 29 | #define HP_VENDOR_ID 0x03f0 |
30 | #define HP49GP_PRODUCT_ID 0x0121 | 30 | #define HP49GP_PRODUCT_ID 0x0121 |
31 | 31 | ||
32 | static struct usb_device_id id_table [] = { | 32 | static const struct usb_device_id id_table[] = { |
33 | { USB_DEVICE(HP_VENDOR_ID, HP49GP_PRODUCT_ID) }, | 33 | { USB_DEVICE(HP_VENDOR_ID, HP49GP_PRODUCT_ID) }, |
34 | { } /* Terminating entry */ | 34 | { } /* Terminating entry */ |
35 | }; | 35 | }; |
diff --git a/drivers/usb/serial/io_tables.h b/drivers/usb/serial/io_tables.h index 9241d3147513..feb56a4ca799 100644 --- a/drivers/usb/serial/io_tables.h +++ b/drivers/usb/serial/io_tables.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #ifndef IO_TABLES_H | 14 | #ifndef IO_TABLES_H |
15 | #define IO_TABLES_H | 15 | #define IO_TABLES_H |
16 | 16 | ||
17 | static struct usb_device_id edgeport_2port_id_table [] = { | 17 | static const struct usb_device_id edgeport_2port_id_table[] = { |
18 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2) }, | 18 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2) }, |
19 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2I) }, | 19 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_2I) }, |
20 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_421) }, | 20 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_421) }, |
@@ -23,7 +23,7 @@ static struct usb_device_id edgeport_2port_id_table [] = { | |||
23 | { } | 23 | { } |
24 | }; | 24 | }; |
25 | 25 | ||
26 | static struct usb_device_id edgeport_4port_id_table [] = { | 26 | static const struct usb_device_id edgeport_4port_id_table[] = { |
27 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4) }, | 27 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4) }, |
28 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_RAPIDPORT_4) }, | 28 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_RAPIDPORT_4) }, |
29 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4T) }, | 29 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4T) }, |
@@ -37,7 +37,7 @@ static struct usb_device_id edgeport_4port_id_table [] = { | |||
37 | { } | 37 | { } |
38 | }; | 38 | }; |
39 | 39 | ||
40 | static struct usb_device_id edgeport_8port_id_table [] = { | 40 | static const struct usb_device_id edgeport_8port_id_table[] = { |
41 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8) }, | 41 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8) }, |
42 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_16_DUAL_CPU) }, | 42 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_16_DUAL_CPU) }, |
43 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8I) }, | 43 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_8I) }, |
@@ -47,7 +47,7 @@ static struct usb_device_id edgeport_8port_id_table [] = { | |||
47 | { } | 47 | { } |
48 | }; | 48 | }; |
49 | 49 | ||
50 | static struct usb_device_id Epic_port_id_table [] = { | 50 | static const struct usb_device_id Epic_port_id_table[] = { |
51 | { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0202) }, | 51 | { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0202) }, |
52 | { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0203) }, | 52 | { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0203) }, |
53 | { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0310) }, | 53 | { USB_DEVICE(USB_VENDOR_ID_NCR, NCR_DEVICE_ID_EPIC_0310) }, |
@@ -60,7 +60,7 @@ static struct usb_device_id Epic_port_id_table [] = { | |||
60 | }; | 60 | }; |
61 | 61 | ||
62 | /* Devices that this driver supports */ | 62 | /* Devices that this driver supports */ |
63 | static struct usb_device_id id_table_combined [] = { | 63 | static const struct usb_device_id id_table_combined[] = { |
64 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4) }, | 64 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4) }, |
65 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_RAPIDPORT_4) }, | 65 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_RAPIDPORT_4) }, |
66 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4T) }, | 66 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_EDGEPORT_4T) }, |
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 1691f07548db..8f0aa64940a6 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -134,7 +134,7 @@ struct edgeport_serial { | |||
134 | 134 | ||
135 | 135 | ||
136 | /* Devices that this driver supports */ | 136 | /* Devices that this driver supports */ |
137 | static struct usb_device_id edgeport_1port_id_table [] = { | 137 | static const struct usb_device_id edgeport_1port_id_table[] = { |
138 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_EDGEPORT_1) }, | 138 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_EDGEPORT_1) }, |
139 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_TI3410_EDGEPORT_1) }, | 139 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_TI3410_EDGEPORT_1) }, |
140 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_TI3410_EDGEPORT_1I) }, | 140 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_TI3410_EDGEPORT_1I) }, |
@@ -154,7 +154,7 @@ static struct usb_device_id edgeport_1port_id_table [] = { | |||
154 | { } | 154 | { } |
155 | }; | 155 | }; |
156 | 156 | ||
157 | static struct usb_device_id edgeport_2port_id_table [] = { | 157 | static const struct usb_device_id edgeport_2port_id_table[] = { |
158 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_EDGEPORT_2) }, | 158 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_EDGEPORT_2) }, |
159 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_EDGEPORT_2C) }, | 159 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_EDGEPORT_2C) }, |
160 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_EDGEPORT_2I) }, | 160 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_EDGEPORT_2I) }, |
@@ -177,7 +177,7 @@ static struct usb_device_id edgeport_2port_id_table [] = { | |||
177 | }; | 177 | }; |
178 | 178 | ||
179 | /* Devices that this driver supports */ | 179 | /* Devices that this driver supports */ |
180 | static struct usb_device_id id_table_combined [] = { | 180 | static const struct usb_device_id id_table_combined[] = { |
181 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_EDGEPORT_1) }, | 181 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_EDGEPORT_1) }, |
182 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_TI3410_EDGEPORT_1) }, | 182 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_TI3410_EDGEPORT_1) }, |
183 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_TI3410_EDGEPORT_1I) }, | 183 | { USB_DEVICE(USB_VENDOR_ID_ION, ION_DEVICE_ID_TI_TI3410_EDGEPORT_1I) }, |
diff --git a/drivers/usb/serial/ipw.c b/drivers/usb/serial/ipw.c index 727d323f092a..c0afa7a219d7 100644 --- a/drivers/usb/serial/ipw.c +++ b/drivers/usb/serial/ipw.c | |||
@@ -134,7 +134,7 @@ enum { | |||
134 | 134 | ||
135 | #define IPW_WANTS_TO_SEND 0x30 | 135 | #define IPW_WANTS_TO_SEND 0x30 |
136 | 136 | ||
137 | static struct usb_device_id usb_ipw_ids[] = { | 137 | static const struct usb_device_id usb_ipw_ids[] = { |
138 | { USB_DEVICE(IPW_VID, IPW_PID) }, | 138 | { USB_DEVICE(IPW_VID, IPW_PID) }, |
139 | { }, | 139 | { }, |
140 | }; | 140 | }; |
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index 95d8d26b9a44..fc2ab81a48d1 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c | |||
@@ -100,7 +100,7 @@ static u8 ir_baud; | |||
100 | static u8 ir_xbof; | 100 | static u8 ir_xbof; |
101 | static u8 ir_add_bof; | 101 | static u8 ir_add_bof; |
102 | 102 | ||
103 | static struct usb_device_id ir_id_table[] = { | 103 | static const struct usb_device_id ir_id_table[] = { |
104 | { USB_DEVICE(0x050f, 0x0180) }, /* KC Technology, KC-180 */ | 104 | { USB_DEVICE(0x050f, 0x0180) }, /* KC Technology, KC-180 */ |
105 | { USB_DEVICE(0x08e9, 0x0100) }, /* XTNDAccess */ | 105 | { USB_DEVICE(0x08e9, 0x0100) }, /* XTNDAccess */ |
106 | { USB_DEVICE(0x09c4, 0x0011) }, /* ACTiSys ACT-IR2000U */ | 106 | { USB_DEVICE(0x09c4, 0x0011) }, /* ACTiSys ACT-IR2000U */ |
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index e6e02b178d2b..43f13cf2f016 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c | |||
@@ -43,7 +43,7 @@ static int debug; | |||
43 | #define DRIVER_VERSION "v0.11" | 43 | #define DRIVER_VERSION "v0.11" |
44 | #define DRIVER_DESC "Infinity USB Unlimited Phoenix driver" | 44 | #define DRIVER_DESC "Infinity USB Unlimited Phoenix driver" |
45 | 45 | ||
46 | static struct usb_device_id id_table[] = { | 46 | static const struct usb_device_id id_table[] = { |
47 | {USB_DEVICE(IUU_USB_VENDOR_ID, IUU_USB_PRODUCT_ID)}, | 47 | {USB_DEVICE(IUU_USB_VENDOR_ID, IUU_USB_PRODUCT_ID)}, |
48 | {} /* Terminating entry */ | 48 | {} /* Terminating entry */ |
49 | }; | 49 | }; |
diff --git a/drivers/usb/serial/keyspan.h b/drivers/usb/serial/keyspan.h index 30771e5b3973..bf3297ddd186 100644 --- a/drivers/usb/serial/keyspan.h +++ b/drivers/usb/serial/keyspan.h | |||
@@ -456,7 +456,7 @@ static const struct keyspan_device_details *keyspan_devices[] = { | |||
456 | NULL, | 456 | NULL, |
457 | }; | 457 | }; |
458 | 458 | ||
459 | static struct usb_device_id keyspan_ids_combined[] = { | 459 | static const struct usb_device_id keyspan_ids_combined[] = { |
460 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa18x_pre_product_id) }, | 460 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa18x_pre_product_id) }, |
461 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19_pre_product_id) }, | 461 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19_pre_product_id) }, |
462 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19w_pre_product_id) }, | 462 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19w_pre_product_id) }, |
@@ -497,7 +497,7 @@ static struct usb_driver keyspan_driver = { | |||
497 | }; | 497 | }; |
498 | 498 | ||
499 | /* usb_device_id table for the pre-firmware download keyspan devices */ | 499 | /* usb_device_id table for the pre-firmware download keyspan devices */ |
500 | static struct usb_device_id keyspan_pre_ids[] = { | 500 | static const struct usb_device_id keyspan_pre_ids[] = { |
501 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa18x_pre_product_id) }, | 501 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa18x_pre_product_id) }, |
502 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19_pre_product_id) }, | 502 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19_pre_product_id) }, |
503 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19qi_pre_product_id) }, | 503 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19qi_pre_product_id) }, |
@@ -513,7 +513,7 @@ static struct usb_device_id keyspan_pre_ids[] = { | |||
513 | { } /* Terminating entry */ | 513 | { } /* Terminating entry */ |
514 | }; | 514 | }; |
515 | 515 | ||
516 | static struct usb_device_id keyspan_1port_ids[] = { | 516 | static const struct usb_device_id keyspan_1port_ids[] = { |
517 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa18x_product_id) }, | 517 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa18x_product_id) }, |
518 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19_product_id) }, | 518 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19_product_id) }, |
519 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19qi_product_id) }, | 519 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa19qi_product_id) }, |
@@ -524,7 +524,7 @@ static struct usb_device_id keyspan_1port_ids[] = { | |||
524 | { } /* Terminating entry */ | 524 | { } /* Terminating entry */ |
525 | }; | 525 | }; |
526 | 526 | ||
527 | static struct usb_device_id keyspan_2port_ids[] = { | 527 | static const struct usb_device_id keyspan_2port_ids[] = { |
528 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa28_product_id) }, | 528 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa28_product_id) }, |
529 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa28x_product_id) }, | 529 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa28x_product_id) }, |
530 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa28xa_product_id) }, | 530 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa28xa_product_id) }, |
@@ -532,7 +532,7 @@ static struct usb_device_id keyspan_2port_ids[] = { | |||
532 | { } /* Terminating entry */ | 532 | { } /* Terminating entry */ |
533 | }; | 533 | }; |
534 | 534 | ||
535 | static struct usb_device_id keyspan_4port_ids[] = { | 535 | static const struct usb_device_id keyspan_4port_ids[] = { |
536 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa49w_product_id) }, | 536 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa49w_product_id) }, |
537 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa49wlc_product_id)}, | 537 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa49wlc_product_id)}, |
538 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa49wg_product_id)}, | 538 | { USB_DEVICE(KEYSPAN_VENDOR_ID, keyspan_usa49wg_product_id)}, |
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index 427d377c9d3e..4efde03fa93b 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -125,7 +125,7 @@ struct keyspan_pda_private { | |||
125 | #define ENTREGRA_VENDOR_ID 0x1645 | 125 | #define ENTREGRA_VENDOR_ID 0x1645 |
126 | #define ENTREGRA_FAKE_ID 0x8093 | 126 | #define ENTREGRA_FAKE_ID 0x8093 |
127 | 127 | ||
128 | static struct usb_device_id id_table_combined [] = { | 128 | static const struct usb_device_id id_table_combined[] = { |
129 | #ifdef KEYSPAN | 129 | #ifdef KEYSPAN |
130 | { USB_DEVICE(KEYSPAN_VENDOR_ID, KEYSPAN_PDA_FAKE_ID) }, | 130 | { USB_DEVICE(KEYSPAN_VENDOR_ID, KEYSPAN_PDA_FAKE_ID) }, |
131 | #endif | 131 | #endif |
@@ -147,20 +147,20 @@ static struct usb_driver keyspan_pda_driver = { | |||
147 | .no_dynamic_id = 1, | 147 | .no_dynamic_id = 1, |
148 | }; | 148 | }; |
149 | 149 | ||
150 | static struct usb_device_id id_table_std [] = { | 150 | static const struct usb_device_id id_table_std[] = { |
151 | { USB_DEVICE(KEYSPAN_VENDOR_ID, KEYSPAN_PDA_ID) }, | 151 | { USB_DEVICE(KEYSPAN_VENDOR_ID, KEYSPAN_PDA_ID) }, |
152 | { } /* Terminating entry */ | 152 | { } /* Terminating entry */ |
153 | }; | 153 | }; |
154 | 154 | ||
155 | #ifdef KEYSPAN | 155 | #ifdef KEYSPAN |
156 | static struct usb_device_id id_table_fake [] = { | 156 | static const struct usb_device_id id_table_fake[] = { |
157 | { USB_DEVICE(KEYSPAN_VENDOR_ID, KEYSPAN_PDA_FAKE_ID) }, | 157 | { USB_DEVICE(KEYSPAN_VENDOR_ID, KEYSPAN_PDA_FAKE_ID) }, |
158 | { } /* Terminating entry */ | 158 | { } /* Terminating entry */ |
159 | }; | 159 | }; |
160 | #endif | 160 | #endif |
161 | 161 | ||
162 | #ifdef XIRCOM | 162 | #ifdef XIRCOM |
163 | static struct usb_device_id id_table_fake_xircom [] = { | 163 | static const struct usb_device_id id_table_fake_xircom[] = { |
164 | { USB_DEVICE(XIRCOM_VENDOR_ID, XIRCOM_FAKE_ID) }, | 164 | { USB_DEVICE(XIRCOM_VENDOR_ID, XIRCOM_FAKE_ID) }, |
165 | { USB_DEVICE(ENTREGRA_VENDOR_ID, ENTREGRA_FAKE_ID) }, | 165 | { USB_DEVICE(ENTREGRA_VENDOR_ID, ENTREGRA_FAKE_ID) }, |
166 | { } | 166 | { } |
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index 731964b5ded6..2dbe22ae50fc 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c | |||
@@ -94,7 +94,7 @@ static int klsi_105_tiocmset(struct tty_struct *tty, struct file *file, | |||
94 | /* | 94 | /* |
95 | * All of the device info needed for the KLSI converters. | 95 | * All of the device info needed for the KLSI converters. |
96 | */ | 96 | */ |
97 | static struct usb_device_id id_table [] = { | 97 | static const struct usb_device_id id_table[] = { |
98 | { USB_DEVICE(PALMCONNECT_VID, PALMCONNECT_PID) }, | 98 | { USB_DEVICE(PALMCONNECT_VID, PALMCONNECT_PID) }, |
99 | { USB_DEVICE(KLSI_VID, KLSI_KL5KUSB105D_PID) }, | 99 | { USB_DEVICE(KLSI_VID, KLSI_KL5KUSB105D_PID) }, |
100 | { } /* Terminating entry */ | 100 | { } /* Terminating entry */ |
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index f917c5b09ca9..fc7855388e27 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -86,7 +86,7 @@ static void kobil_set_termios(struct tty_struct *tty, | |||
86 | struct usb_serial_port *port, struct ktermios *old); | 86 | struct usb_serial_port *port, struct ktermios *old); |
87 | static void kobil_init_termios(struct tty_struct *tty); | 87 | static void kobil_init_termios(struct tty_struct *tty); |
88 | 88 | ||
89 | static struct usb_device_id id_table [] = { | 89 | static const struct usb_device_id id_table[] = { |
90 | { USB_DEVICE(KOBIL_VENDOR_ID, KOBIL_ADAPTER_B_PRODUCT_ID) }, | 90 | { USB_DEVICE(KOBIL_VENDOR_ID, KOBIL_ADAPTER_B_PRODUCT_ID) }, |
91 | { USB_DEVICE(KOBIL_VENDOR_ID, KOBIL_ADAPTER_K_PRODUCT_ID) }, | 91 | { USB_DEVICE(KOBIL_VENDOR_ID, KOBIL_ADAPTER_K_PRODUCT_ID) }, |
92 | { USB_DEVICE(KOBIL_VENDOR_ID, KOBIL_USBTWIN_PRODUCT_ID) }, | 92 | { USB_DEVICE(KOBIL_VENDOR_ID, KOBIL_USBTWIN_PRODUCT_ID) }, |
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index 86503831ad3f..2849f8c32015 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
@@ -111,7 +111,7 @@ static void mct_u232_unthrottle(struct tty_struct *tty); | |||
111 | /* | 111 | /* |
112 | * All of the device info needed for the MCT USB-RS232 converter. | 112 | * All of the device info needed for the MCT USB-RS232 converter. |
113 | */ | 113 | */ |
114 | static struct usb_device_id id_table_combined [] = { | 114 | static const struct usb_device_id id_table_combined[] = { |
115 | { USB_DEVICE(MCT_U232_VID, MCT_U232_PID) }, | 115 | { USB_DEVICE(MCT_U232_VID, MCT_U232_PID) }, |
116 | { USB_DEVICE(MCT_U232_VID, MCT_U232_SITECOM_PID) }, | 116 | { USB_DEVICE(MCT_U232_VID, MCT_U232_SITECOM_PID) }, |
117 | { USB_DEVICE(MCT_U232_VID, MCT_U232_DU_H3SP_PID) }, | 117 | { USB_DEVICE(MCT_U232_VID, MCT_U232_DU_H3SP_PID) }, |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index e081dc0d21de..2ce1a2acf1a8 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -85,7 +85,7 @@ static int debug; | |||
85 | #define MOSCHIP_DEVICE_ID_7720 0x7720 | 85 | #define MOSCHIP_DEVICE_ID_7720 0x7720 |
86 | #define MOSCHIP_DEVICE_ID_7715 0x7715 | 86 | #define MOSCHIP_DEVICE_ID_7715 0x7715 |
87 | 87 | ||
88 | static struct usb_device_id moschip_port_id_table[] = { | 88 | static const struct usb_device_id moschip_port_id_table[] = { |
89 | { USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7720) }, | 89 | { USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7720) }, |
90 | { } /* terminating entry */ | 90 | { } /* terminating entry */ |
91 | }; | 91 | }; |
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 04bef4bebc4a..c89a89c6394e 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -181,7 +181,7 @@ | |||
181 | #define URB_TRANSFER_BUFFER_SIZE 32 /* URB Size */ | 181 | #define URB_TRANSFER_BUFFER_SIZE 32 /* URB Size */ |
182 | 182 | ||
183 | 183 | ||
184 | static struct usb_device_id moschip_port_id_table[] = { | 184 | static const struct usb_device_id moschip_port_id_table[] = { |
185 | {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7840)}, | 185 | {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7840)}, |
186 | {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7820)}, | 186 | {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7820)}, |
187 | {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_2)}, | 187 | {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_2)}, |
@@ -198,7 +198,7 @@ static struct usb_device_id moschip_port_id_table[] = { | |||
198 | {} /* terminating entry */ | 198 | {} /* terminating entry */ |
199 | }; | 199 | }; |
200 | 200 | ||
201 | static __devinitdata struct usb_device_id moschip_id_table_combined[] = { | 201 | static const struct usb_device_id moschip_id_table_combined[] __devinitconst = { |
202 | {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7840)}, | 202 | {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7840)}, |
203 | {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7820)}, | 203 | {USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7820)}, |
204 | {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_2)}, | 204 | {USB_DEVICE(USB_VENDOR_ID_BANDB, BANDB_DEVICE_ID_USO9ML2_2)}, |
diff --git a/drivers/usb/serial/moto_modem.c b/drivers/usb/serial/moto_modem.c index 99bd00f5188a..cf1718394e18 100644 --- a/drivers/usb/serial/moto_modem.c +++ b/drivers/usb/serial/moto_modem.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <linux/usb.h> | 21 | #include <linux/usb.h> |
22 | #include <linux/usb/serial.h> | 22 | #include <linux/usb/serial.h> |
23 | 23 | ||
24 | static struct usb_device_id id_table [] = { | 24 | static const struct usb_device_id id_table[] = { |
25 | { USB_DEVICE(0x05c6, 0x3197) }, /* unknown Motorola phone */ | 25 | { USB_DEVICE(0x05c6, 0x3197) }, /* unknown Motorola phone */ |
26 | { USB_DEVICE(0x0c44, 0x0022) }, /* unknown Mororola phone */ | 26 | { USB_DEVICE(0x0c44, 0x0022) }, /* unknown Mororola phone */ |
27 | { USB_DEVICE(0x22b8, 0x2a64) }, /* Motorola KRZR K1m */ | 27 | { USB_DEVICE(0x22b8, 0x2a64) }, /* Motorola KRZR K1m */ |
diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c index 5ceaa4c6be09..efa61bcd3297 100644 --- a/drivers/usb/serial/navman.c +++ b/drivers/usb/serial/navman.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | static int debug; | 23 | static int debug; |
24 | 24 | ||
25 | static struct usb_device_id id_table [] = { | 25 | static const struct usb_device_id id_table[] = { |
26 | { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */ | 26 | { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */ |
27 | { }, | 27 | { }, |
28 | }; | 28 | }; |
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 062265038bf0..38762a0fb5bf 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -75,7 +75,7 @@ static void omninet_disconnect(struct usb_serial *serial); | |||
75 | static void omninet_release(struct usb_serial *serial); | 75 | static void omninet_release(struct usb_serial *serial); |
76 | static int omninet_attach(struct usb_serial *serial); | 76 | static int omninet_attach(struct usb_serial *serial); |
77 | 77 | ||
78 | static struct usb_device_id id_table[] = { | 78 | static const struct usb_device_id id_table[] = { |
79 | { USB_DEVICE(ZYXEL_VENDOR_ID, ZYXEL_OMNINET_ID) }, | 79 | { USB_DEVICE(ZYXEL_VENDOR_ID, ZYXEL_OMNINET_ID) }, |
80 | { USB_DEVICE(ZYXEL_VENDOR_ID, BT_IGNITIONPRO_ID) }, | 80 | { USB_DEVICE(ZYXEL_VENDOR_ID, BT_IGNITIONPRO_ID) }, |
81 | { } /* Terminating entry */ | 81 | { } /* Terminating entry */ |
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c index 4cdb975caa89..a654317e7d15 100644 --- a/drivers/usb/serial/opticon.c +++ b/drivers/usb/serial/opticon.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | static int debug; | 23 | static int debug; |
24 | 24 | ||
25 | static struct usb_device_id id_table[] = { | 25 | static const struct usb_device_id id_table[] = { |
26 | { USB_DEVICE(0x065a, 0x0009) }, | 26 | { USB_DEVICE(0x065a, 0x0009) }, |
27 | { }, | 27 | { }, |
28 | }; | 28 | }; |
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 6e94a6711f08..d34b4cf89424 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -344,7 +344,7 @@ static int option_resume(struct usb_serial *serial); | |||
344 | #define HAIER_VENDOR_ID 0x201e | 344 | #define HAIER_VENDOR_ID 0x201e |
345 | #define HAIER_PRODUCT_CE100 0x2009 | 345 | #define HAIER_PRODUCT_CE100 0x2009 |
346 | 346 | ||
347 | static struct usb_device_id option_ids[] = { | 347 | static const struct usb_device_id option_ids[] = { |
348 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) }, | 348 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) }, |
349 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) }, | 349 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) }, |
350 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA_LIGHT) }, | 350 | { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA_LIGHT) }, |
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 2ae97e7195c6..839733431832 100644 --- a/drivers/usb/serial/oti6858.c +++ b/drivers/usb/serial/oti6858.c | |||
@@ -58,7 +58,7 @@ | |||
58 | #define OTI6858_AUTHOR "Tomasz Michal Lukaszewski <FIXME@FIXME>" | 58 | #define OTI6858_AUTHOR "Tomasz Michal Lukaszewski <FIXME@FIXME>" |
59 | #define OTI6858_VERSION "0.1" | 59 | #define OTI6858_VERSION "0.1" |
60 | 60 | ||
61 | static struct usb_device_id id_table [] = { | 61 | static const struct usb_device_id id_table[] = { |
62 | { USB_DEVICE(OTI6858_VENDOR_ID, OTI6858_PRODUCT_ID) }, | 62 | { USB_DEVICE(OTI6858_VENDOR_ID, OTI6858_PRODUCT_ID) }, |
63 | { } | 63 | { } |
64 | }; | 64 | }; |
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 9ec1a49e2362..767000c70149 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -50,7 +50,7 @@ struct pl2303_buf { | |||
50 | char *buf_put; | 50 | char *buf_put; |
51 | }; | 51 | }; |
52 | 52 | ||
53 | static struct usb_device_id id_table [] = { | 53 | static const struct usb_device_id id_table[] = { |
54 | { USB_DEVICE(PL2303_VENDOR_ID, PL2303_PRODUCT_ID) }, | 54 | { USB_DEVICE(PL2303_VENDOR_ID, PL2303_PRODUCT_ID) }, |
55 | { USB_DEVICE(PL2303_VENDOR_ID, PL2303_PRODUCT_ID_RSAQ2) }, | 55 | { USB_DEVICE(PL2303_VENDOR_ID, PL2303_PRODUCT_ID_RSAQ2) }, |
56 | { USB_DEVICE(PL2303_VENDOR_ID, PL2303_PRODUCT_ID_DCU11) }, | 56 | { USB_DEVICE(PL2303_VENDOR_ID, PL2303_PRODUCT_ID_DCU11) }, |
diff --git a/drivers/usb/serial/qcserial.c b/drivers/usb/serial/qcserial.c index 7528b8d57f1c..310ff6ec6567 100644 --- a/drivers/usb/serial/qcserial.c +++ b/drivers/usb/serial/qcserial.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | static int debug; | 22 | static int debug; |
23 | 23 | ||
24 | static struct usb_device_id id_table[] = { | 24 | static const struct usb_device_id id_table[] = { |
25 | {USB_DEVICE(0x05c6, 0x9211)}, /* Acer Gobi QDL device */ | 25 | {USB_DEVICE(0x05c6, 0x9211)}, /* Acer Gobi QDL device */ |
26 | {USB_DEVICE(0x05c6, 0x9212)}, /* Acer Gobi Modem Device */ | 26 | {USB_DEVICE(0x05c6, 0x9212)}, /* Acer Gobi Modem Device */ |
27 | {USB_DEVICE(0x03f0, 0x1f1d)}, /* HP un2400 Gobi Modem Device */ | 27 | {USB_DEVICE(0x03f0, 0x1f1d)}, /* HP un2400 Gobi Modem Device */ |
diff --git a/drivers/usb/serial/siemens_mpi.c b/drivers/usb/serial/siemens_mpi.c index 951ea0c6ba77..cb8195cabfde 100644 --- a/drivers/usb/serial/siemens_mpi.c +++ b/drivers/usb/serial/siemens_mpi.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #define DRIVER_DESC "Driver for Siemens USB/MPI adapter" | 22 | #define DRIVER_DESC "Driver for Siemens USB/MPI adapter" |
23 | 23 | ||
24 | 24 | ||
25 | static struct usb_device_id id_table[] = { | 25 | static const struct usb_device_id id_table[] = { |
26 | /* Vendor and product id for 6ES7-972-0CB20-0XA0 */ | 26 | /* Vendor and product id for 6ES7-972-0CB20-0XA0 */ |
27 | { USB_DEVICE(0x908, 0x0004) }, | 27 | { USB_DEVICE(0x908, 0x0004) }, |
28 | { }, | 28 | { }, |
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 3eb6143bb646..ea27f7d5acbe 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -226,7 +226,7 @@ static const struct sierra_iface_info direct_ip_interface_blacklist = { | |||
226 | .ifaceinfo = direct_ip_non_serial_ifaces, | 226 | .ifaceinfo = direct_ip_non_serial_ifaces, |
227 | }; | 227 | }; |
228 | 228 | ||
229 | static struct usb_device_id id_table [] = { | 229 | static const struct usb_device_id id_table[] = { |
230 | { USB_DEVICE(0x0F3D, 0x0112) }, /* Airprime/Sierra PC 5220 */ | 230 | { USB_DEVICE(0x0F3D, 0x0112) }, /* Airprime/Sierra PC 5220 */ |
231 | { USB_DEVICE(0x03F0, 0x1B1D) }, /* HP ev2200 a.k.a MC5720 */ | 231 | { USB_DEVICE(0x03F0, 0x1B1D) }, /* HP ev2200 a.k.a MC5720 */ |
232 | { USB_DEVICE(0x03F0, 0x1E1D) }, /* HP hs2300 a.k.a MC8775 */ | 232 | { USB_DEVICE(0x03F0, 0x1E1D) }, /* HP hs2300 a.k.a MC8775 */ |
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index 1e58220403d1..ebd1688e62df 100644 --- a/drivers/usb/serial/spcp8x5.c +++ b/drivers/usb/serial/spcp8x5.c | |||
@@ -45,7 +45,7 @@ static int debug; | |||
45 | #define SPCP8x5_835_VID 0x04fc | 45 | #define SPCP8x5_835_VID 0x04fc |
46 | #define SPCP8x5_835_PID 0x0231 | 46 | #define SPCP8x5_835_PID 0x0231 |
47 | 47 | ||
48 | static struct usb_device_id id_table [] = { | 48 | static const struct usb_device_id id_table[] = { |
49 | { USB_DEVICE(SPCP8x5_PHILIPS_VID , SPCP8x5_PHILIPS_PID)}, | 49 | { USB_DEVICE(SPCP8x5_PHILIPS_VID , SPCP8x5_PHILIPS_PID)}, |
50 | { USB_DEVICE(SPCP8x5_INTERMATIC_VID, SPCP8x5_INTERMATIC_PID)}, | 50 | { USB_DEVICE(SPCP8x5_INTERMATIC_VID, SPCP8x5_INTERMATIC_PID)}, |
51 | { USB_DEVICE(SPCP8x5_835_VID, SPCP8x5_835_PID)}, | 51 | { USB_DEVICE(SPCP8x5_835_VID, SPCP8x5_835_PID)}, |
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c index b282c0f2d8e5..1a76bc5261e9 100644 --- a/drivers/usb/serial/symbolserial.c +++ b/drivers/usb/serial/symbolserial.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | static int debug; | 22 | static int debug; |
23 | 23 | ||
24 | static struct usb_device_id id_table[] = { | 24 | static const struct usb_device_id id_table[] = { |
25 | { USB_DEVICE(0x05e0, 0x0600) }, | 25 | { USB_DEVICE(0x05e0, 0x0600) }, |
26 | { }, | 26 | { }, |
27 | }; | 27 | }; |
diff --git a/drivers/usb/serial/usb_debug.c b/drivers/usb/serial/usb_debug.c index 7b5bfc4edd3d..252cc2d993b2 100644 --- a/drivers/usb/serial/usb_debug.c +++ b/drivers/usb/serial/usb_debug.c | |||
@@ -29,7 +29,7 @@ static char USB_DEBUG_BRK[USB_DEBUG_BRK_SIZE] = { | |||
29 | 0xff, | 29 | 0xff, |
30 | }; | 30 | }; |
31 | 31 | ||
32 | static struct usb_device_id id_table [] = { | 32 | static const struct usb_device_id id_table[] = { |
33 | { USB_DEVICE(0x0525, 0x127a) }, | 33 | { USB_DEVICE(0x0525, 0x127a) }, |
34 | { }, | 34 | { }, |
35 | }; | 35 | }; |
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 1093d2eb046a..e89e0d589eb6 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
@@ -111,17 +111,17 @@ static int debug; | |||
111 | separate ID tables, and then a third table that combines them | 111 | separate ID tables, and then a third table that combines them |
112 | just for the purpose of exporting the autoloading information. | 112 | just for the purpose of exporting the autoloading information. |
113 | */ | 113 | */ |
114 | static struct usb_device_id id_table_std [] = { | 114 | static const struct usb_device_id id_table_std[] = { |
115 | { USB_DEVICE(CONNECT_TECH_VENDOR_ID, CONNECT_TECH_WHITE_HEAT_ID) }, | 115 | { USB_DEVICE(CONNECT_TECH_VENDOR_ID, CONNECT_TECH_WHITE_HEAT_ID) }, |
116 | { } /* Terminating entry */ | 116 | { } /* Terminating entry */ |
117 | }; | 117 | }; |
118 | 118 | ||
119 | static struct usb_device_id id_table_prerenumeration [] = { | 119 | static const struct usb_device_id id_table_prerenumeration[] = { |
120 | { USB_DEVICE(CONNECT_TECH_VENDOR_ID, CONNECT_TECH_FAKE_WHITE_HEAT_ID) }, | 120 | { USB_DEVICE(CONNECT_TECH_VENDOR_ID, CONNECT_TECH_FAKE_WHITE_HEAT_ID) }, |
121 | { } /* Terminating entry */ | 121 | { } /* Terminating entry */ |
122 | }; | 122 | }; |
123 | 123 | ||
124 | static struct usb_device_id id_table_combined [] = { | 124 | static const struct usb_device_id id_table_combined[] = { |
125 | { USB_DEVICE(CONNECT_TECH_VENDOR_ID, CONNECT_TECH_WHITE_HEAT_ID) }, | 125 | { USB_DEVICE(CONNECT_TECH_VENDOR_ID, CONNECT_TECH_WHITE_HEAT_ID) }, |
126 | { USB_DEVICE(CONNECT_TECH_VENDOR_ID, CONNECT_TECH_FAKE_WHITE_HEAT_ID) }, | 126 | { USB_DEVICE(CONNECT_TECH_VENDOR_ID, CONNECT_TECH_FAKE_WHITE_HEAT_ID) }, |
127 | { } /* Terminating entry */ | 127 | { } /* Terminating entry */ |