diff mbox series

USB: serial: ch341: sort device-id entries

Message ID 20201203091159.12896-1-johan@kernel.org
State Accepted
Commit bf193bfc12dbc3754fc8a6e0e1e3702f1af2f772
Headers show
Series USB: serial: ch341: sort device-id entries | expand

Commit Message

Johan Hovold Dec. 3, 2020, 9:11 a.m. UTC
Keep the device-id entries sorted to make it easier to add new ones in
the right spot.

Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
---
 drivers/usb/serial/ch341.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Greg Kroah-Hartman Dec. 3, 2020, 9:25 a.m. UTC | #1
On Thu, Dec 03, 2020 at 10:11:59AM +0100, Johan Hovold wrote:
> Keep the device-id entries sorted to make it easier to add new ones in
> the right spot.
> 
> Cc: stable@vger.kernel.org
> Signed-off-by: Johan Hovold <johan@kernel.org>

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
diff mbox series

Patch

diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c
index b157a230178d..28deaaec581f 100644
--- a/drivers/usb/serial/ch341.c
+++ b/drivers/usb/serial/ch341.c
@@ -81,11 +81,11 @@ 
 #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);