USB: serial: simple: sort driver entries

commit d245aedc00775c4d7265a9f4522cc4e1fd34d102 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Johan Hovold
2023-07-20 09:53:57 +02:00
committed by Greg Kroah-Hartman
parent 81c54eef1d
commit d5db33a667

View File

@@ -38,16 +38,6 @@ static struct usb_serial_driver vendor##_device = { \
{ USB_DEVICE(0x0a21, 0x8001) } /* MMT-7305WW */ { USB_DEVICE(0x0a21, 0x8001) } /* MMT-7305WW */
DEVICE(carelink, CARELINK_IDS); DEVICE(carelink, CARELINK_IDS);
/* ZIO Motherboard USB driver */
#define ZIO_IDS() \
{ USB_DEVICE(0x1CBE, 0x0103) }
DEVICE(zio, ZIO_IDS);
/* Funsoft Serial USB driver */
#define FUNSOFT_IDS() \
{ USB_DEVICE(0x1404, 0xcddc) }
DEVICE(funsoft, FUNSOFT_IDS);
/* Infineon Flashloader driver */ /* Infineon Flashloader driver */
#define FLASHLOADER_IDS() \ #define FLASHLOADER_IDS() \
{ USB_DEVICE_INTERFACE_CLASS(0x058b, 0x0041, USB_CLASS_CDC_DATA) }, \ { USB_DEVICE_INTERFACE_CLASS(0x058b, 0x0041, USB_CLASS_CDC_DATA) }, \
@@ -55,6 +45,11 @@ DEVICE(funsoft, FUNSOFT_IDS);
{ USB_DEVICE(0x8087, 0x0801) } { USB_DEVICE(0x8087, 0x0801) }
DEVICE(flashloader, FLASHLOADER_IDS); DEVICE(flashloader, FLASHLOADER_IDS);
/* Funsoft Serial USB driver */
#define FUNSOFT_IDS() \
{ USB_DEVICE(0x1404, 0xcddc) }
DEVICE(funsoft, FUNSOFT_IDS);
/* Google Serial USB SubClass */ /* Google Serial USB SubClass */
#define GOOGLE_IDS() \ #define GOOGLE_IDS() \
{ USB_VENDOR_AND_INTERFACE_INFO(0x18d1, \ { USB_VENDOR_AND_INTERFACE_INFO(0x18d1, \
@@ -63,6 +58,11 @@ DEVICE(flashloader, FLASHLOADER_IDS);
0x01) } 0x01) }
DEVICE(google, GOOGLE_IDS); DEVICE(google, GOOGLE_IDS);
/* HP4x (48/49) Generic Serial driver */
#define HP4X_IDS() \
{ USB_DEVICE(0x03f0, 0x0121) }
DEVICE(hp4x, HP4X_IDS);
/* KAUFMANN RKS+CAN VCP */ /* KAUFMANN RKS+CAN VCP */
#define KAUFMANN_IDS() \ #define KAUFMANN_IDS() \
{ USB_DEVICE(0x16d0, 0x0870) } { USB_DEVICE(0x16d0, 0x0870) }
@@ -73,11 +73,6 @@ DEVICE(kaufmann, KAUFMANN_IDS);
{ USB_DEVICE(0x1209, 0x8b00) } { USB_DEVICE(0x1209, 0x8b00) }
DEVICE(libtransistor, LIBTRANSISTOR_IDS); DEVICE(libtransistor, LIBTRANSISTOR_IDS);
/* ViVOpay USB Serial Driver */
#define VIVOPAY_IDS() \
{ USB_DEVICE(0x1d5f, 0x1004) } /* ViVOpay 8800 */
DEVICE(vivopay, VIVOPAY_IDS);
/* Motorola USB Phone driver */ /* Motorola USB Phone driver */
#define MOTO_IDS() \ #define MOTO_IDS() \
{ USB_DEVICE(0x05c6, 0x3197) }, /* unknown Motorola phone */ \ { USB_DEVICE(0x05c6, 0x3197) }, /* unknown Motorola phone */ \
@@ -106,10 +101,10 @@ DEVICE(nokia, NOKIA_IDS);
{ USB_DEVICE(0x09d7, 0x0100) } /* NovAtel FlexPack GPS */ { USB_DEVICE(0x09d7, 0x0100) } /* NovAtel FlexPack GPS */
DEVICE_N(novatel_gps, NOVATEL_IDS, 3); DEVICE_N(novatel_gps, NOVATEL_IDS, 3);
/* HP4x (48/49) Generic Serial driver */ /* Siemens USB/MPI adapter */
#define HP4X_IDS() \ #define SIEMENS_IDS() \
{ USB_DEVICE(0x03f0, 0x0121) } { USB_DEVICE(0x908, 0x0004) }
DEVICE(hp4x, HP4X_IDS); DEVICE(siemens_mpi, SIEMENS_IDS);
/* Suunto ANT+ USB Driver */ /* Suunto ANT+ USB Driver */
#define SUUNTO_IDS() \ #define SUUNTO_IDS() \
@@ -117,47 +112,52 @@ DEVICE(hp4x, HP4X_IDS);
{ USB_DEVICE(0x0fcf, 0x1009) } /* Dynastream ANT USB-m Stick */ { USB_DEVICE(0x0fcf, 0x1009) } /* Dynastream ANT USB-m Stick */
DEVICE(suunto, SUUNTO_IDS); DEVICE(suunto, SUUNTO_IDS);
/* Siemens USB/MPI adapter */ /* ViVOpay USB Serial Driver */
#define SIEMENS_IDS() \ #define VIVOPAY_IDS() \
{ USB_DEVICE(0x908, 0x0004) } { USB_DEVICE(0x1d5f, 0x1004) } /* ViVOpay 8800 */
DEVICE(siemens_mpi, SIEMENS_IDS); DEVICE(vivopay, VIVOPAY_IDS);
/* ZIO Motherboard USB driver */
#define ZIO_IDS() \
{ USB_DEVICE(0x1CBE, 0x0103) }
DEVICE(zio, ZIO_IDS);
/* All of the above structures mushed into two lists */ /* All of the above structures mushed into two lists */
static struct usb_serial_driver * const serial_drivers[] = { static struct usb_serial_driver * const serial_drivers[] = {
&carelink_device, &carelink_device,
&zio_device,
&funsoft_device,
&flashloader_device, &flashloader_device,
&funsoft_device,
&google_device, &google_device,
&hp4x_device,
&kaufmann_device, &kaufmann_device,
&libtransistor_device, &libtransistor_device,
&vivopay_device,
&moto_modem_device, &moto_modem_device,
&motorola_tetra_device, &motorola_tetra_device,
&nokia_device, &nokia_device,
&novatel_gps_device, &novatel_gps_device,
&hp4x_device,
&suunto_device,
&siemens_mpi_device, &siemens_mpi_device,
&suunto_device,
&vivopay_device,
&zio_device,
NULL NULL
}; };
static const struct usb_device_id id_table[] = { static const struct usb_device_id id_table[] = {
CARELINK_IDS(), CARELINK_IDS(),
ZIO_IDS(),
FUNSOFT_IDS(),
FLASHLOADER_IDS(), FLASHLOADER_IDS(),
FUNSOFT_IDS(),
GOOGLE_IDS(), GOOGLE_IDS(),
HP4X_IDS(),
KAUFMANN_IDS(), KAUFMANN_IDS(),
LIBTRANSISTOR_IDS(), LIBTRANSISTOR_IDS(),
VIVOPAY_IDS(),
MOTO_IDS(), MOTO_IDS(),
MOTOROLA_TETRA_IDS(), MOTOROLA_TETRA_IDS(),
NOKIA_IDS(), NOKIA_IDS(),
NOVATEL_IDS(), NOVATEL_IDS(),
HP4X_IDS(),
SUUNTO_IDS(),
SIEMENS_IDS(), SIEMENS_IDS(),
SUUNTO_IDS(),
VIVOPAY_IDS(),
ZIO_IDS(),
{ }, { },
}; };
MODULE_DEVICE_TABLE(usb, id_table); MODULE_DEVICE_TABLE(usb, id_table);