Don't use NULL for integer values.
This commit is contained in:
parent
088da88a56
commit
f3d647fc2c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: i8042reg.h,v 1.1 2002/02/10 01:58:04 thorpej Exp $ */
|
||||
/* $NetBSD: i8042reg.h,v 1.2 2003/10/22 09:03:40 agc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
|
@ -234,7 +234,7 @@ extern int i8042_wait_input __P((bus_space_tag_t,
|
|||
*/
|
||||
#define I8042_WRITECCB(iot, ioh, value) \
|
||||
( i8042_cmd((iot), (ioh), I8042_WRITE_CCB, I8042_NO_RESPONSE, \
|
||||
NULL, (value)) )
|
||||
0, (value)) )
|
||||
|
||||
/* Macro to read the 8042 Controller Command Byte
|
||||
*/
|
||||
|
@ -254,7 +254,7 @@ extern int i8042_wait_input __P((bus_space_tag_t,
|
|||
*/
|
||||
#define I8042_AUXDISABLE(iot, ioh) \
|
||||
( i8042_cmd((iot), (ioh), I8042_CMD, I8042_NO_RESPONSE, \
|
||||
NULL, KBC_AUXDISABLE) )
|
||||
0, KBC_AUXDISABLE) )
|
||||
|
||||
/* Macro to enable the Auxiliary device clock line.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: opms.c,v 1.10 2003/07/15 03:36:03 lukem Exp $ */
|
||||
/* $NetBSD: opms.c,v 1.11 2003/10/22 09:03:40 agc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
|
@ -91,7 +91,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: opms.c,v 1.10 2003/07/15 03:36:03 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: opms.c,v 1.11 2003/10/22 09:03:40 agc Exp $");
|
||||
|
||||
#include "opms.h"
|
||||
#if NOPMS > 1
|
||||
|
@ -465,7 +465,7 @@ opmsopen(dev, flag, mode, p)
|
|||
i8042_flush(sc->sc_iot, sc->sc_ioh);
|
||||
sc->sc_protocol_byte = PMS_RD_BYTE1;
|
||||
(void) i8042_cmd(sc->sc_iot, sc->sc_ioh, I8042_AUX_CMD,
|
||||
I8042_NO_RESPONSE, NULL, PMS_MOUSE_ENABLE);
|
||||
I8042_NO_RESPONSE, 0, PMS_MOUSE_ENABLE);
|
||||
(void) I8042_AUXENABLE(sc->sc_iot, sc->sc_ioh);
|
||||
/* Enable interrupts on the axilliary device.
|
||||
*/
|
||||
|
@ -522,7 +522,7 @@ opmsclose(dev, flag, mode, p)
|
|||
*/
|
||||
i8042_flush(sc->sc_iot, sc->sc_ioh);
|
||||
(void) i8042_cmd(sc->sc_iot, sc->sc_ioh, I8042_AUX_CMD,
|
||||
I8042_NO_RESPONSE, NULL, PMS_MOUSE_DISABLE);
|
||||
I8042_NO_RESPONSE, 0, PMS_MOUSE_DISABLE);
|
||||
i8042_flush(sc->sc_iot, sc->sc_ioh);
|
||||
(void) I8042_WRITECCB(sc->sc_iot, sc->sc_ioh, NOAUX_CMDBYTE);
|
||||
(void) I8042_AUXDISABLE(sc->sc_iot, sc->sc_ioh);
|
||||
|
|
Loading…
Reference in New Issue