Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Cosmetic changes. No functional change intended.



details:   https://anonhg.NetBSD.org/src/rev/722f744f0c0d
branches:  trunk
changeset: 368348:722f744f0c0d
user:      nat <nat%NetBSD.org@localhost>
date:      Wed Jul 06 06:25:24 2022 +0000

description:
Cosmetic changes.  No functional change intended.

diffstat:

 sys/dev/usb/uplcom.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r cc5cf30087a9 -r 722f744f0c0d sys/dev/usb/uplcom.c
--- a/sys/dev/usb/uplcom.c      Wed Jul 06 06:00:40 2022 +0000
+++ b/sys/dev/usb/uplcom.c      Wed Jul 06 06:25:24 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uplcom.c,v 1.92 2022/07/06 06:00:40 nat Exp $  */
+/*     $NetBSD: uplcom.c,v 1.93 2022/07/06 06:25:24 nat Exp $  */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uplcom.c,v 1.92 2022/07/06 06:00:40 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uplcom.c,v 1.93 2022/07/06 06:25:24 nat Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -115,13 +115,13 @@
 #define        UPLCOM_SET_REQUEST              0x01
 #define        UPLCOM_SET_CRTSCTS_0            0x41
 #define        UPLCOM_SET_CRTSCTS_HX           0x61
+#define UPLCOM_HX_STATUS_REG           0x8080
 
 #define        UPLCOM_N_SERIAL_CTS             0x80
 
 #define UPLCOM_HXN_SET_REQUEST         0x80
 #define UPLCOM_HXN_SET_CRTSCTS_REG     0x0A
 #define UPLCOM_HXN_SET_CRTSCTS         0xFA
-#define UPLCOM_HX_STATUS_REG           0x8080
 
 enum  pl2303_type {
        UPLCOM_TYPE_0,  /* we use this for all non-HX variants */
@@ -316,9 +316,8 @@
        /* determine chip type */
        ddesc = usbd_get_device_descriptor(dev);
        if (ddesc->bDeviceClass != UDCLASS_COMM &&
-           ddesc->bMaxPacketSize == 0x40) {
+           ddesc->bMaxPacketSize == 0x40)
                sc->sc_type = UPLCOM_TYPE_HX;
-       }
 
        if (sc->sc_type == UPLCOM_TYPE_HX) {
                req.bmRequestType = UT_READ_VENDOR_DEVICE;



Home | Main Index | Thread Index | Old Index