summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandr Shadchin <shadchin@cvs.openbsd.org>2011-01-03 19:46:35 +0000
committerAlexandr Shadchin <shadchin@cvs.openbsd.org>2011-01-03 19:46:35 +0000
commitf8cd558993fbc83ab30ba7daf7d47220d4f773e5 (patch)
treee73f1e5d42f1b0c143d2620d5016a62c81b484ee
parent38e40c234534db1848e645a88b5daad477d91af1 (diff)
remove sc->sc_kbcslot, as is always PCKBC_AUX_SLOT
ok krw, miod
-rw-r--r--sys/dev/pckbc/pms.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/dev/pckbc/pms.c b/sys/dev/pckbc/pms.c
index acfd87c184d..2d543e1c158 100644
--- a/sys/dev/pckbc/pms.c
+++ b/sys/dev/pckbc/pms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pms.c,v 1.17 2010/12/27 12:22:20 shadchin Exp $ */
+/* $OpenBSD: pms.c,v 1.18 2011/01/03 19:46:34 shadchin Exp $ */
/* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */
/*-
@@ -58,7 +58,6 @@ struct pms_softc { /* driver status information */
struct device sc_dev;
pckbc_tag_t sc_kbctag;
- int sc_kbcslot;
int sc_state;
#define PMS_STATE_DISABLED 0
@@ -170,10 +169,10 @@ int
pms_cmd(struct pms_softc *sc, u_char *cmd, int len, u_char *resp, int resplen)
{
if (sc->poll) {
- return pckbc_poll_cmd(sc->sc_kbctag, sc->sc_kbcslot,
+ return pckbc_poll_cmd(sc->sc_kbctag, PCKBC_AUX_SLOT,
cmd, len, resplen, resp, 1);
} else {
- return pckbc_enqueue_cmd(sc->sc_kbctag, sc->sc_kbcslot,
+ return pckbc_enqueue_cmd(sc->sc_kbctag, PCKBC_AUX_SLOT,
cmd, len, resplen, 1, resp);
}
}
@@ -398,11 +397,10 @@ pmsattach(struct device *parent, struct device *self, void *aux)
struct wsmousedev_attach_args a;
sc->sc_kbctag = pa->pa_tag;
- sc->sc_kbcslot = pa->pa_slot;
printf("\n");
- pckbc_set_inputhandler(sc->sc_kbctag, sc->sc_kbcslot,
+ pckbc_set_inputhandler(sc->sc_kbctag, PCKBC_AUX_SLOT,
pmsinput, sc, DEVNAME(sc));
a.accessops = &pms_accessops;
@@ -453,10 +451,10 @@ pms_change_state(struct pms_softc *sc, int newstate)
sc->inputstate = 0;
- pckbc_slot_enable(sc->sc_kbctag, sc->sc_kbcslot, 1);
+ pckbc_slot_enable(sc->sc_kbctag, PCKBC_AUX_SLOT, 1);
if (sc->poll)
- pckbc_flush(sc->sc_kbctag, sc->sc_kbcslot);
+ pckbc_flush(sc->sc_kbctag, PCKBC_AUX_SLOT);
pms_reset(sc);
@@ -478,7 +476,7 @@ pms_change_state(struct pms_softc *sc, int newstate)
if (sc->protocol && sc->protocol->disable)
sc->protocol->disable(sc);
- pckbc_slot_enable(sc->sc_kbctag, sc->sc_kbcslot, 0);
+ pckbc_slot_enable(sc->sc_kbctag, PCKBC_AUX_SLOT, 0);
break;
}