summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uchcom.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2010-02-20 11:44:57 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2010-02-20 11:44:57 +0000
commit0a0e9bf0d0a9d2daab6d5ece6de88b79574510f9 (patch)
tree7deeebd5cc82952972e2936f4e5520c666aa2d50 /sys/dev/usb/uchcom.c
parentf9e48941852aef6911630ca6a293fc4ba080f4f6 (diff)
Match on new CH341A in uchcom and correctly name the CH340 device,
from looking at the windows driver.
Diffstat (limited to 'sys/dev/usb/uchcom.c')
-rw-r--r--sys/dev/usb/uchcom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/uchcom.c b/sys/dev/usb/uchcom.c
index 8cc4813e5e9..a79c59d3e02 100644
--- a/sys/dev/usb/uchcom.c
+++ b/sys/dev/usb/uchcom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uchcom.c,v 1.9 2009/10/13 19:33:17 pirofti Exp $ */
+/* $OpenBSD: uchcom.c,v 1.10 2010/02/20 11:44:56 jsg Exp $ */
/* $NetBSD: uchcom.c,v 1.1 2007/09/03 17:57:37 tshiozak Exp $ */
/*
@@ -222,7 +222,8 @@ struct ucom_methods uchcom_methods = {
static const struct usb_devno uchcom_devs[] = {
{ USB_VENDOR_WCH, USB_PRODUCT_WCH_CH341 },
- { USB_VENDOR_WCH2, USB_PRODUCT_WCH2_CH341 },
+ { USB_VENDOR_WCH2, USB_PRODUCT_WCH2_CH340 },
+ { USB_VENDOR_WCH2, USB_PRODUCT_WCH2_CH341A }
};
#define uchcom_lookup(v, p) usb_lookup(uchcom_devs, v, p)