summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2021-09-02 15:15:13 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2021-09-02 15:15:13 +0000
commit6f45323929c9b0122c858db54da0b5ba28636a19 (patch)
treefbfa897af1eab5c554698ad60c16530a6fdaa686 /sys/dev
parentc05d504a3981e5e460c14af2fffc8236dac0c01c (diff)
Explain in a comment why two wscons_keydesc structures are needed.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/ucc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/ucc.c b/sys/dev/usb/ucc.c
index b5266235975..0c87925bc53 100644
--- a/sys/dev/usb/ucc.c
+++ b/sys/dev/usb/ucc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ucc.c,v 1.23 2021/09/01 10:41:39 anton Exp $ */
+/* $OpenBSD: ucc.c,v 1.24 2021/09/02 15:15:12 anton Exp $ */
/*
* Copyright (c) 2021 Anton Lindqvist <anton@openbsd.org>
@@ -82,6 +82,10 @@ struct ucc_softc {
u_char sc_last_raw;
};
+ /*
+ * Only the first element is populated whereas the second remains zeroed
+ * out since such trailing sentinel is required by wskbd_load_keymap().
+ */
struct wscons_keydesc sc_keydesc[2];
struct wskbd_mapdata sc_keymap;
};