summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ugold.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-04-15 09:14:27 +0000
committermpi <mpi@openbsd.org>2014-04-15 09:14:27 +0000
commit2b5428ee9dd11d1a542cce490602126242088e7e (patch)
treef67005ce129410725ba3e0eb4f906fe73e699bf6 /sys/dev/usb/ugold.c
parentInit outargs only once, and fix a bad bzero(). (diff)
downloadwireguard-openbsd-2b5428ee9dd11d1a542cce490602126242088e7e.tar.xz
wireguard-openbsd-2b5428ee9dd11d1a542cce490602126242088e7e.zip
Modify the uhidev_*_report() methods to always take a report ID argument
instead of using the default, per-driver, one. This is a step to move away from the 1 report ID <-> 1 driver design which is no longer true since the addition of upd(4). ok andre@
Diffstat (limited to 'sys/dev/usb/ugold.c')
-rw-r--r--sys/dev/usb/ugold.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ugold.c b/sys/dev/usb/ugold.c
index ad688c9d688..3679424bf66 100644
--- a/sys/dev/usb/ugold.c
+++ b/sys/dev/usb/ugold.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ugold.c,v 1.4 2014/03/19 08:59:37 mpi Exp $ */
+/* $OpenBSD: ugold.c,v 1.5 2014/04/15 09:14:27 mpi Exp $ */
/*
* Copyright (c) 2013 Takayoshi SASANO <sasano@openbsd.org>
@@ -257,6 +257,6 @@ ugold_refresh(void *arg)
int
ugold_issue_cmd(struct ugold_softc *sc, uint8_t *cmd, int len)
{
- return uhidev_set_report_async(&sc->sc_hdev, UHID_OUTPUT_REPORT,
- cmd, len);
+ return uhidev_set_report_async(&sc->sc_hdev, UHID_OUTPUT_REPORT,
+ sc->sc_hdev.sc_report_id, cmd, len);
}