Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb note that "enum usbnet_ep un_ed" member is the w...



details:   https://anonhg.NetBSD.org/src/rev/ebf3cb8c50d2
branches:  trunk
changeset: 953237:ebf3cb8c50d2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Mar 01 22:59:52 2021 +0000

description:
note that "enum usbnet_ep un_ed" member is the wrong type, and should
be "uByte un_ed", and fix when we version this next.  noticed by martin@

diffstat:

 sys/dev/usb/usbnet.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r be931f5e1d3c -r ebf3cb8c50d2 sys/dev/usb/usbnet.h
--- a/sys/dev/usb/usbnet.h      Mon Mar 01 22:07:58 2021 +0000
+++ b/sys/dev/usb/usbnet.h      Mon Mar 01 22:59:52 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbnet.h,v 1.19 2020/10/28 01:51:45 mrg Exp $  */
+/*     $NetBSD: usbnet.h,v 1.20 2021/03/01 22:59:52 mrg Exp $  */
 
 /*
  * Copyright (c) 2019 Matthew R. Green
@@ -261,6 +261,9 @@
        /*
         * This section should be filled in before calling
         * usbnet_attach_ifp().
+        *
+        * XXX This should be of type "uByte".  enum usbnet_ep
+        * is the index.  Fix this in a kernel version bump.
         */
        enum usbnet_ep          un_ed[USBNET_ENDPT_MAX];
 



Home | Main Index | Thread Index | Old Index