summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-03-28 12:43:48 +0000
committerriastradh <riastradh@NetBSD.org>2022-03-28 12:43:48 +0000
commit01ec758bfb78b6c70265e04d084a8375e02f9ebb (patch)
treed6f60b3fb3e63380d4f456f735b237c0e6a90089 /sys/dev
parent48386ef308097f01a08231192e5a344bed72cc7d (diff)
uhidev(9): Make some private functions static and fix comment.
No functional change.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/uhidev.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c
index 20cce6c471f..d18a3841151 100644
--- a/sys/dev/usb/uhidev.c
+++ b/sys/dev/usb/uhidev.c
@@ -1,4 +1,4 @@
-/* $NetBSD: uhidev.c,v 1.86 2022/03/28 12:43:39 riastradh Exp $ */
+/* $NetBSD: uhidev.c,v 1.87 2022/03/28 12:43:48 riastradh Exp $ */
/*
* Copyright (c) 2001, 2012 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhidev.c,v 1.86 2022/03/28 12:43:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhidev.c,v 1.87 2022/03/28 12:43:48 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -124,10 +124,10 @@ int uhidevdebug = 0;
#define DPRINTFN(n,x)
#endif
-Static void uhidev_intr(struct usbd_xfer *, void *, usbd_status);
+static void uhidev_intr(struct usbd_xfer *, void *, usbd_status);
-Static int uhidev_maxrepid(void *, int);
-Static int uhidevprint(void *, const char *);
+static int uhidev_maxrepid(void *, int);
+static int uhidevprint(void *, const char *);
static int uhidev_match(device_t, cfdata_t, void *);
static void uhidev_attach(device_t, device_t, void *);
@@ -444,7 +444,7 @@ uhidev_attach(device_t parent, device_t self, void *aux)
return;
}
-int
+static int
uhidev_maxrepid(void *buf, int len)
{
struct hid_data *d;
@@ -460,7 +460,7 @@ uhidev_maxrepid(void *buf, int len)
return maxid;
}
-int
+static int
uhidevprint(void *aux, const char *pnp)
{
struct uhidev_attach_arg *uha = aux;
@@ -573,7 +573,7 @@ uhidev_detach(device_t self, int flags)
return rv;
}
-void
+static void
uhidev_intr(struct usbd_xfer *xfer, void *addr, usbd_status status)
{
struct uhidev_softc *sc = addr;
@@ -731,8 +731,8 @@ uhidev_open_pipes(struct uhidev_softc *sc)
return 0;
/*
- * Lock the configuration and release sc_lock we may sleep to
- * allocate. If someone else got in first, we're done;
+ * Lock the configuration and release sc_lock -- we may sleep
+ * to allocate. If someone else got in first, we're done;
* otherwise open the pipes.
*/
error = uhidev_config_enter(sc);