summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2022-10-04 19:38:21 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2022-10-04 19:38:21 +0000
commit3dfe6a57f032b1c422e532404501102c396d6448 (patch)
treecc49b99e709c992e8f7a59941e7bf6f1c17a7f3a /sys/dev
parent7e8455e58395fa0612a0f413bca54d4b4fbeff52 (diff)
Repair Apple-specific translation support broken by mistake in 1.88; reported
by Leonardo Moreno
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/ukbd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c
index 4847b1d95ca..67a21fd3729 100644
--- a/sys/dev/usb/ukbd.c
+++ b/sys/dev/usb/ukbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ukbd.c,v 1.87 2022/09/16 16:30:10 robert Exp $ */
+/* $OpenBSD: ukbd.c,v 1.88 2022/10/04 19:38:20 miod Exp $ */
/* $NetBSD: ukbd.c,v 1.85 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -131,7 +131,6 @@ struct ukbd_softc {
struct hidkbd sc_kbd;
int sc_spl;
- struct hid_location sc_apple_fn;
#ifdef DDB
struct timeout sc_ddb; /* for entering DDB */
@@ -242,7 +241,7 @@ ukbd_attach(struct device *parent, struct device *self, void *aux)
if (uha->uaa->vendor == USB_VENDOR_APPLE) {
if (hid_locate(desc, dlen, HID_USAGE2(HUP_APPLE, HUG_FN_KEY),
- uha->reportid, hid_input, &sc->sc_apple_fn, &qflags)) {
+ uha->reportid, hid_input, &kbd->sc_fn, &qflags)) {
if (qflags & HIO_VARIABLE) {
switch (uha->uaa->product) {
case USB_PRODUCT_APPLE_FOUNTAIN_ISO: