Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pckbport Sprinkle static.



details:   https://anonhg.NetBSD.org/src/rev/b0d62e447116
branches:  trunk
changeset: 769407:b0d62e447116
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Sep 08 16:34:09 2011 +0000

description:
Sprinkle static.

diffstat:

 sys/dev/pckbport/pms.c |  32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diffs (109 lines):

diff -r a68d7c526d34 -r b0d62e447116 sys/dev/pckbport/pms.c
--- a/sys/dev/pckbport/pms.c    Thu Sep 08 15:36:42 2011 +0000
+++ b/sys/dev/pckbport/pms.c    Thu Sep 08 16:34:09 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pms.c,v 1.33 2011/09/08 15:26:26 jakllsch Exp $ */
+/* $NetBSD: pms.c,v 1.34 2011/09/08 16:34:09 jakllsch Exp $ */
 
 /*-
  * Copyright (c) 2004 Kentaro Kurahone.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pms.c,v 1.33 2011/09/08 15:26:26 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pms.c,v 1.34 2011/09/08 16:34:09 jakllsch Exp $");
 
 #include "opt_pms.h"
 
@@ -61,11 +61,11 @@
 #define DPRINTF(x)
 #endif
 
-const enum pms_type tries[] = {
+static const enum pms_type tries[] = {
        PMS_SCROLL5, PMS_SCROLL3, PMS_STANDARD, PMS_UNKNOWN
 };
 
-const struct pms_protocol pms_protocols[] = {
+static const struct pms_protocol pms_protocols[] = {
        { { 0, 0, 0 }, 0, "unknown protocol" },
        { { 0, 0, 0 }, 0, "no scroll wheel (3 buttons)" },
        { { 200, 100, 80 }, 3, "scroll wheel (3 buttons)" },
@@ -75,9 +75,9 @@
 };
 
 
-int pmsprobe(device_t, cfdata_t, void *);
-void pmsattach(device_t, device_t, void *);
-void pmsinput(void *, int);
+static int pmsprobe(device_t, cfdata_t, void *);
+static void pmsattach(device_t, device_t, void *);
+static void pmsinput(void *, int);
 
 CFATTACH_DECL_NEW(pms, sizeof(struct pms_softc),
     pmsprobe, pmsattach, NULL, NULL);
@@ -86,14 +86,14 @@
 static void    do_enable(struct pms_softc *);
 static void    do_disable(struct pms_softc *);
 static void    pms_reset_thread(void*);
-int    pms_enable(void *);
-int    pms_ioctl(void *, u_long, void *, int, struct lwp *);
-void   pms_disable(void *);
+static int     pms_enable(void *);
+static int     pms_ioctl(void *, u_long, void *, int, struct lwp *);
+static void    pms_disable(void *);
 
 static bool    pms_suspend(device_t, const pmf_qual_t *);
 static bool    pms_resume(device_t, const pmf_qual_t *);
 
-const struct wsmouse_accessops pms_accessops = {
+static const struct wsmouse_accessops pms_accessops = {
        pms_enable,
        pms_ioctl,
        pms_disable,
@@ -166,7 +166,7 @@
        return 10;
 }
 
-void
+static void
 pmsattach(device_t parent, device_t self, void *aux)
 {
        struct pms_softc *sc = device_private(self);
@@ -308,7 +308,7 @@
        pckbport_slot_enable(sc->sc_kbctag, sc->sc_kbcslot, 0);
 }
 
-int
+static int
 pms_enable(void *v)
 {
        struct pms_softc *sc = v;
@@ -326,7 +326,7 @@
        return 0;
 }
 
-void
+static void
 pms_disable(void *v)
 {
        struct pms_softc *sc = v;
@@ -380,7 +380,7 @@
        return true;
 }
 
-int
+static int
 pms_ioctl(void *v, u_long cmd, void *data, int flag,
     struct lwp *l)
 {
@@ -489,7 +489,7 @@
 #define PMS_4BUTMASK 0x10
 #define PMS_5BUTMASK 0x20
 
-void
+static void
 pmsinput(void *vsc, int data)
 {
        struct pms_softc *sc = vsc;



Home | Main Index | Thread Index | Old Index