From: anton Date: Mon, 23 Aug 2021 17:50:26 +0000 (+0000) Subject: I missed that wskbd_rawinput() is hidden behind WSDISPLAY_COMPAT_RAWKBD X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=50fb1c23470d876d5a8de99720a6b8faaf67c88f;p=openbsd I missed that wskbd_rawinput() is hidden behind WSDISPLAY_COMPAT_RAWKBD as discovered by deraadt@; should hopefully make ucc(4) work on alpha. --- diff --git a/sys/dev/usb/ucc.c b/sys/dev/usb/ucc.c index ab8266d4371..49700267b01 100644 --- a/sys/dev/usb/ucc.c +++ b/sys/dev/usb/ucc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ucc.c,v 1.4 2021/08/22 07:20:40 anton Exp $ */ +/* $OpenBSD: ucc.c,v 1.5 2021/08/23 17:50:26 anton Exp $ */ /* * Copyright (c) 2021 Anton Lindqvist @@ -426,6 +426,7 @@ ucc_input(struct ucc_softc *sc, u_int bit, int release) void ucc_rawinput(struct ucc_softc *sc, u_char c, int release) { +#ifdef WSDISPLAY_COMPAT_RAWKBD u_char buf[2]; int len = 0; int s; @@ -439,6 +440,7 @@ ucc_rawinput(struct ucc_softc *sc, u_char c, int release) s = spltty(); wskbd_rawinput(sc->sc_wskbddev, buf, len); splx(s); +#endif } int