Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Remove incorrect printout of CH340/CH341 part.
details: https://anonhg.NetBSD.org/src/rev/95a7517868b5
branches: trunk
changeset: 995160:95a7517868b5
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Dec 10 00:29:47 2018 +0000
description:
Remove incorrect printout of CH340/CH341 part.
CH341 and CH340 can't be differentiated by the chip's USB firmware version.
diffstat:
sys/dev/usb/uchcom.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diffs (42 lines):
diff -r ef4d47a51eaf -r 95a7517868b5 sys/dev/usb/uchcom.c
--- a/sys/dev/usb/uchcom.c Mon Dec 10 00:22:13 2018 +0000
+++ b/sys/dev/usb/uchcom.c Mon Dec 10 00:29:47 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uchcom.c,v 1.19 2018/12/10 00:22:13 jakllsch Exp $ */
+/* $NetBSD: uchcom.c,v 1.20 2018/12/10 00:29:47 jakllsch Exp $ */
/*
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uchcom.c,v 1.19 2018/12/10 00:22:13 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uchcom.c,v 1.20 2018/12/10 00:29:47 jakllsch Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -74,7 +74,6 @@
#define UCHCOM_IFACE_INDEX 0
#define UCHCOM_CONFIG_INDEX 0
-#define UCHCOM_REV_CH340 0x0250
#define UCHCOM_INPUT_BUF_SIZE 8
#define UCHCOM_REQ_GET_VERSION 0x5F
@@ -272,15 +271,6 @@
if (set_config(sc))
goto failed;
- switch (uaa->uaa_release) {
- case UCHCOM_REV_CH340:
- aprint_normal_dev(self, "CH340 detected\n");
- break;
- default:
- aprint_normal_dev(self, "CH341 detected\n");
- break;
- }
-
if (find_ifaces(sc, &sc->sc_iface))
goto failed;
Home |
Main Index |
Thread Index |
Old Index