Skip to content

Commit d245aed

Browse files
committed
USB: serial: simple: sort driver entries
Sort the driver symbols alphabetically in order to make it more obvious where new driver entries should be added. Cc: stable@vger.kernel.org Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
1 parent dd92c8a commit d245aed

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

drivers/usb/serial/usb-serial-simple.c

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,18 @@ static struct usb_serial_driver vendor##_device = { \
3838
{ USB_DEVICE(0x0a21, 0x8001) } /* MMT-7305WW */
3939
DEVICE(carelink, CARELINK_IDS);
4040

41-
/* ZIO Motherboard USB driver */
42-
#define ZIO_IDS() \
43-
{ USB_DEVICE(0x1CBE, 0x0103) }
44-
DEVICE(zio, ZIO_IDS);
45-
46-
/* Funsoft Serial USB driver */
47-
#define FUNSOFT_IDS() \
48-
{ USB_DEVICE(0x1404, 0xcddc) }
49-
DEVICE(funsoft, FUNSOFT_IDS);
50-
5141
/* Infineon Flashloader driver */
5242
#define FLASHLOADER_IDS() \
5343
{ USB_DEVICE_INTERFACE_CLASS(0x058b, 0x0041, USB_CLASS_CDC_DATA) }, \
5444
{ USB_DEVICE(0x8087, 0x0716) }, \
5545
{ USB_DEVICE(0x8087, 0x0801) }
5646
DEVICE(flashloader, FLASHLOADER_IDS);
5747

48+
/* Funsoft Serial USB driver */
49+
#define FUNSOFT_IDS() \
50+
{ USB_DEVICE(0x1404, 0xcddc) }
51+
DEVICE(funsoft, FUNSOFT_IDS);
52+
5853
/* Google Serial USB SubClass */
5954
#define GOOGLE_IDS() \
6055
{ USB_VENDOR_AND_INTERFACE_INFO(0x18d1, \
@@ -63,6 +58,11 @@ DEVICE(flashloader, FLASHLOADER_IDS);
6358
0x01) }
6459
DEVICE(google, GOOGLE_IDS);
6560

61+
/* HP4x (48/49) Generic Serial driver */
62+
#define HP4X_IDS() \
63+
{ USB_DEVICE(0x03f0, 0x0121) }
64+
DEVICE(hp4x, HP4X_IDS);
65+
6666
/* KAUFMANN RKS+CAN VCP */
6767
#define KAUFMANN_IDS() \
6868
{ USB_DEVICE(0x16d0, 0x0870) }
@@ -73,11 +73,6 @@ DEVICE(kaufmann, KAUFMANN_IDS);
7373
{ USB_DEVICE(0x1209, 0x8b00) }
7474
DEVICE(libtransistor, LIBTRANSISTOR_IDS);
7575

76-
/* ViVOpay USB Serial Driver */
77-
#define VIVOPAY_IDS() \
78-
{ USB_DEVICE(0x1d5f, 0x1004) } /* ViVOpay 8800 */
79-
DEVICE(vivopay, VIVOPAY_IDS);
80-
8176
/* Motorola USB Phone driver */
8277
#define MOTO_IDS() \
8378
{ USB_DEVICE(0x05c6, 0x3197) }, /* unknown Motorola phone */ \
@@ -106,58 +101,63 @@ DEVICE(nokia, NOKIA_IDS);
106101
{ USB_DEVICE(0x09d7, 0x0100) } /* NovAtel FlexPack GPS */
107102
DEVICE_N(novatel_gps, NOVATEL_IDS, 3);
108103

109-
/* HP4x (48/49) Generic Serial driver */
110-
#define HP4X_IDS() \
111-
{ USB_DEVICE(0x03f0, 0x0121) }
112-
DEVICE(hp4x, HP4X_IDS);
104+
/* Siemens USB/MPI adapter */
105+
#define SIEMENS_IDS() \
106+
{ USB_DEVICE(0x908, 0x0004) }
107+
DEVICE(siemens_mpi, SIEMENS_IDS);
113108

114109
/* Suunto ANT+ USB Driver */
115110
#define SUUNTO_IDS() \
116111
{ USB_DEVICE(0x0fcf, 0x1008) }, \
117112
{ USB_DEVICE(0x0fcf, 0x1009) } /* Dynastream ANT USB-m Stick */
118113
DEVICE(suunto, SUUNTO_IDS);
119114

120-
/* Siemens USB/MPI adapter */
121-
#define SIEMENS_IDS() \
122-
{ USB_DEVICE(0x908, 0x0004) }
123-
DEVICE(siemens_mpi, SIEMENS_IDS);
115+
/* ViVOpay USB Serial Driver */
116+
#define VIVOPAY_IDS() \
117+
{ USB_DEVICE(0x1d5f, 0x1004) } /* ViVOpay 8800 */
118+
DEVICE(vivopay, VIVOPAY_IDS);
119+
120+
/* ZIO Motherboard USB driver */
121+
#define ZIO_IDS() \
122+
{ USB_DEVICE(0x1CBE, 0x0103) }
123+
DEVICE(zio, ZIO_IDS);
124124

125125
/* All of the above structures mushed into two lists */
126126
static struct usb_serial_driver * const serial_drivers[] = {
127127
&carelink_device,
128-
&zio_device,
129-
&funsoft_device,
130128
&flashloader_device,
129+
&funsoft_device,
131130
&google_device,
131+
&hp4x_device,
132132
&kaufmann_device,
133133
&libtransistor_device,
134-
&vivopay_device,
135134
&moto_modem_device,
136135
&motorola_tetra_device,
137136
&nokia_device,
138137
&novatel_gps_device,
139-
&hp4x_device,
140-
&suunto_device,
141138
&siemens_mpi_device,
139+
&suunto_device,
140+
&vivopay_device,
141+
&zio_device,
142142
NULL
143143
};
144144

145145
static const struct usb_device_id id_table[] = {
146146
CARELINK_IDS(),
147-
ZIO_IDS(),
148-
FUNSOFT_IDS(),
149147
FLASHLOADER_IDS(),
148+
FUNSOFT_IDS(),
150149
GOOGLE_IDS(),
150+
HP4X_IDS(),
151151
KAUFMANN_IDS(),
152152
LIBTRANSISTOR_IDS(),
153-
VIVOPAY_IDS(),
154153
MOTO_IDS(),
155154
MOTOROLA_TETRA_IDS(),
156155
NOKIA_IDS(),
157156
NOVATEL_IDS(),
158-
HP4X_IDS(),
159-
SUUNTO_IDS(),
160157
SIEMENS_IDS(),
158+
SUUNTO_IDS(),
159+
VIVOPAY_IDS(),
160+
ZIO_IDS(),
161161
{ },
162162
};
163163
MODULE_DEVICE_TABLE(usb, id_table);

0 commit comments

Comments
 (0)