summaryrefslogtreecommitdiff
path: root/sys/dev/pckbc/pms_intelli.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-10-17 01:32:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-10-17 01:32:47 +0000
commitedbdb2e76bf1a8ba9a1ebb0ba1b13b22881dda07 (patch)
treeadde1b3224820d6cc33553c13f6da9c4c6b5452c /sys/dev/pckbc/pms_intelli.c
parent174706182723faea2f6b4b1d2ef599e1ba0cb10b (diff)
use NULL to point to the response buffer, which avoids confusion; ok fgsch
Diffstat (limited to 'sys/dev/pckbc/pms_intelli.c')
-rw-r--r--sys/dev/pckbc/pms_intelli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pckbc/pms_intelli.c b/sys/dev/pckbc/pms_intelli.c
index da9accf0a06..c6409c40646 100644
--- a/sys/dev/pckbc/pms_intelli.c
+++ b/sys/dev/pckbc/pms_intelli.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pms_intelli.c,v 1.1 2007/08/01 12:16:59 kettenis Exp $ */
+/* $OpenBSD: pms_intelli.c,v 1.2 2007/10/17 01:32:46 deraadt Exp $ */
/* $NetBSD: psm_intelli.c,v 1.8 2000/06/05 22:20:57 sommerfeld Exp $ */
/*-
@@ -84,7 +84,7 @@ pmsi_setintellimode(tag, slot)
cmd[0] = PMS_SET_SAMPLE;
for (i = 0; i < 3; i++) {
cmd[1] = rates[i];
- res = pckbc_poll_cmd(tag, slot, cmd, 2, 0, 0, 0);
+ res = pckbc_poll_cmd(tag, slot, cmd, 2, 0, NULL, 0);
if (res)
return (res);
}
@@ -203,7 +203,7 @@ pmsiattach(parent, self, aux)
/* no interrupts until enabled */
cmd[0] = PMS_DEV_DISABLE;
- res = pckbc_poll_cmd(pa->pa_tag, pa->pa_slot, cmd, 1, 0, 0, 0);
+ res = pckbc_poll_cmd(pa->pa_tag, pa->pa_slot, cmd, 1, 0, NULL, 0);
if (res)
printf("pmsiattach: disable error\n");
pckbc_slot_enable(sc->sc_kbctag, sc->sc_kbcslot, 0);