Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Transfer some static from my winter coat to more...
details: https://anonhg.NetBSD.org/src/rev/7ee1d9731f87
branches: trunk
changeset: 772175:7ee1d9731f87
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu Dec 22 02:13:08 2011 +0000
description:
Transfer some static from my winter coat to more structures/functions
in this file.
diffstat:
sys/dev/usb/uslsa.c | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diffs (96 lines):
diff -r 76695eac6695 -r 7ee1d9731f87 sys/dev/usb/uslsa.c
--- a/sys/dev/usb/uslsa.c Thu Dec 22 02:00:19 2011 +0000
+++ b/sys/dev/usb/uslsa.c Thu Dec 22 02:13:08 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uslsa.c,v 1.13 2011/12/06 19:05:43 jakllsch Exp $ */
+/* $NetBSD: uslsa.c,v 1.14 2011/12/22 02:13:08 jakllsch Exp $ */
/* from ugensa.c */
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uslsa.c,v 1.13 2011/12/06 19:05:43 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uslsa.c,v 1.14 2011/12/22 02:13:08 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -170,7 +170,7 @@
static int uslsa_request_set(struct uslsa_softc *, uint8_t, uint16_t);
static void uslsa_set_flow(struct uslsa_softc *, tcflag_t, tcflag_t);
-struct ucom_methods uslsa_methods = {
+static const struct ucom_methods uslsa_methods = {
uslsa_get_status,
uslsa_set,
uslsa_param,
@@ -206,16 +206,16 @@
};
#define uslsa_lookup(v, p) usb_lookup(uslsa_devs, v, p)
-int uslsa_match(device_t, cfdata_t, void *);
-void uslsa_attach(device_t, device_t, void *);
-void uslsa_childdet(device_t, device_t);
-int uslsa_detach(device_t, int);
-int uslsa_activate(device_t, enum devact);
-extern struct cfdriver uslsa_cd;
+static int uslsa_match(device_t, cfdata_t, void *);
+static void uslsa_attach(device_t, device_t, void *);
+static void uslsa_childdet(device_t, device_t);
+static int uslsa_detach(device_t, int);
+static int uslsa_activate(device_t, enum devact);
+
CFATTACH_DECL2_NEW(uslsa, sizeof(struct uslsa_softc), uslsa_match,
uslsa_attach, uslsa_detach, uslsa_activate, NULL, uslsa_childdet);
-int
+static int
uslsa_match(device_t parent, cfdata_t match, void *aux)
{
struct usb_attach_arg *uaa = aux;
@@ -224,7 +224,7 @@
UMATCH_VENDOR_PRODUCT : UMATCH_NONE);
}
-void
+static void
uslsa_attach(device_t parent, device_t self, void *aux)
{
struct uslsa_softc *sc = device_private(self);
@@ -325,7 +325,7 @@
return;
}
-int
+static int
uslsa_activate(device_t self, enum devact act)
{
struct uslsa_softc *sc = device_private(self);
@@ -339,7 +339,7 @@
}
}
-void
+static void
uslsa_childdet(device_t self, device_t child)
{
struct uslsa_softc *sc = device_private(self);
@@ -348,7 +348,7 @@
sc->sc_subdev = NULL;
}
-int
+static int
uslsa_detach(device_t self, int flags)
{
struct uslsa_softc *sc = device_private(self);
@@ -534,7 +534,7 @@
return 0;
}
-void
+static void
uslsa_close(void *vsc, int portno)
{
struct uslsa_softc *sc;
Home |
Main Index |
Thread Index |
Old Index