diff options
author | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:42:02 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-11-20 08:42:02 -0500 |
commit | a02001086bbfb4da35d1228bebc2f1b442db455f (patch) | |
tree | 62ab47936cef06fd08657ca5b6cd1df98c19be57 /drivers/usb/serial/usb-serial-simple.c | |
parent | eff264efeeb0898408e8c9df72d8a32621035bed (diff) | |
parent | fc14f9c1272f62c3e8d01300f52467c0d9af50f9 (diff) |
Merge Linus' tree to be be to apply submitted patches to newer code than
current trivial.git base
Diffstat (limited to 'drivers/usb/serial/usb-serial-simple.c')
-rw-r--r-- | drivers/usb/serial/usb-serial-simple.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/drivers/usb/serial/usb-serial-simple.c b/drivers/usb/serial/usb-serial-simple.c index 675f9fae9cf2..8bfc47c29828 100644 --- a/drivers/usb/serial/usb-serial-simple.c +++ b/drivers/usb/serial/usb-serial-simple.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/usb.h> | 20 | #include <linux/usb.h> |
21 | #include <linux/usb/serial.h> | 21 | #include <linux/usb/serial.h> |
22 | 22 | ||
23 | #define DEVICE(vendor, IDS) \ | 23 | #define DEVICE_N(vendor, IDS, nport) \ |
24 | static const struct usb_device_id vendor##_id_table[] = { \ | 24 | static const struct usb_device_id vendor##_id_table[] = { \ |
25 | IDS(), \ | 25 | IDS(), \ |
26 | { }, \ | 26 | { }, \ |
@@ -31,9 +31,15 @@ static struct usb_serial_driver vendor##_device = { \ | |||
31 | .name = #vendor, \ | 31 | .name = #vendor, \ |
32 | }, \ | 32 | }, \ |
33 | .id_table = vendor##_id_table, \ | 33 | .id_table = vendor##_id_table, \ |
34 | .num_ports = 1, \ | 34 | .num_ports = nport, \ |
35 | }; | 35 | }; |
36 | 36 | ||
37 | #define DEVICE(vendor, IDS) DEVICE_N(vendor, IDS, 1) | ||
38 | |||
39 | /* Medtronic CareLink USB driver */ | ||
40 | #define CARELINK_IDS() \ | ||
41 | { USB_DEVICE(0x0a21, 0x8001) } /* MMT-7305WW */ | ||
42 | DEVICE(carelink, CARELINK_IDS); | ||
37 | 43 | ||
38 | /* ZIO Motherboard USB driver */ | 44 | /* ZIO Motherboard USB driver */ |
39 | #define ZIO_IDS() \ | 45 | #define ZIO_IDS() \ |
@@ -64,6 +70,11 @@ DEVICE(vivopay, VIVOPAY_IDS); | |||
64 | { USB_DEVICE(0x22b8, 0x2c64) } /* Motorola V950 phone */ | 70 | { USB_DEVICE(0x22b8, 0x2c64) } /* Motorola V950 phone */ |
65 | DEVICE(moto_modem, MOTO_IDS); | 71 | DEVICE(moto_modem, MOTO_IDS); |
66 | 72 | ||
73 | /* Novatel Wireless GPS driver */ | ||
74 | #define NOVATEL_IDS() \ | ||
75 | { USB_DEVICE(0x09d7, 0x0100) } /* NovAtel FlexPack GPS */ | ||
76 | DEVICE_N(novatel_gps, NOVATEL_IDS, 3); | ||
77 | |||
67 | /* HP4x (48/49) Generic Serial driver */ | 78 | /* HP4x (48/49) Generic Serial driver */ |
68 | #define HP4X_IDS() \ | 79 | #define HP4X_IDS() \ |
69 | { USB_DEVICE(0x03f0, 0x0121) } | 80 | { USB_DEVICE(0x03f0, 0x0121) } |
@@ -82,11 +93,13 @@ DEVICE(siemens_mpi, SIEMENS_IDS); | |||
82 | 93 | ||
83 | /* All of the above structures mushed into two lists */ | 94 | /* All of the above structures mushed into two lists */ |
84 | static struct usb_serial_driver * const serial_drivers[] = { | 95 | static struct usb_serial_driver * const serial_drivers[] = { |
96 | &carelink_device, | ||
85 | &zio_device, | 97 | &zio_device, |
86 | &funsoft_device, | 98 | &funsoft_device, |
87 | &flashloader_device, | 99 | &flashloader_device, |
88 | &vivopay_device, | 100 | &vivopay_device, |
89 | &moto_modem_device, | 101 | &moto_modem_device, |
102 | &novatel_gps_device, | ||
90 | &hp4x_device, | 103 | &hp4x_device, |
91 | &suunto_device, | 104 | &suunto_device, |
92 | &siemens_mpi_device, | 105 | &siemens_mpi_device, |
@@ -94,11 +107,13 @@ static struct usb_serial_driver * const serial_drivers[] = { | |||
94 | }; | 107 | }; |
95 | 108 | ||
96 | static const struct usb_device_id id_table[] = { | 109 | static const struct usb_device_id id_table[] = { |
110 | CARELINK_IDS(), | ||
97 | ZIO_IDS(), | 111 | ZIO_IDS(), |
98 | FUNSOFT_IDS(), | 112 | FUNSOFT_IDS(), |
99 | FLASHLOADER_IDS(), | 113 | FLASHLOADER_IDS(), |
100 | VIVOPAY_IDS(), | 114 | VIVOPAY_IDS(), |
101 | MOTO_IDS(), | 115 | MOTO_IDS(), |
116 | NOVATEL_IDS(), | ||
102 | HP4X_IDS(), | 117 | HP4X_IDS(), |
103 | SUUNTO_IDS(), | 118 | SUUNTO_IDS(), |
104 | SIEMENS_IDS(), | 119 | SIEMENS_IDS(), |