USB: serial: ch341: sort device-id entries
authorJohan Hovold <johan@kernel.org>
Thu, 3 Dec 2020 09:11:59 +0000 (10:11 +0100)
committerJohan Hovold <johan@kernel.org>
Thu, 3 Dec 2020 09:28:55 +0000 (10:28 +0100)
Keep the device-id entries sorted to make it easier to add new ones in
the right spot.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ch341.c

index b157a23..28deaae 100644 (file)
 #define CH341_QUIRK_SIMULATE_BREAK     BIT(1)
 
 static const struct usb_device_id id_table[] = {
-       { USB_DEVICE(0x4348, 0x5523) },
-       { USB_DEVICE(0x1a86, 0x7522) },
-       { USB_DEVICE(0x1a86, 0x7523) },
        { USB_DEVICE(0x1a86, 0x5512) },
        { USB_DEVICE(0x1a86, 0x5523) },
+       { USB_DEVICE(0x1a86, 0x7522) },
+       { USB_DEVICE(0x1a86, 0x7523) },
+       { USB_DEVICE(0x4348, 0x5523) },
        { },
 };
 MODULE_DEVICE_TABLE(usb, id_table);