Use PMF_FN_ARGS, PMF_FN_PROTO.

This commit is contained in:
dyoung 2008-02-29 06:35:40 +00:00
parent 41d64046d4
commit 61ad1dd43b
4 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi_ec.c,v 1.50 2008/01/18 01:03:24 jmcneill Exp $ */
/* $NetBSD: acpi_ec.c,v 1.51 2008/02/29 06:35:40 dyoung Exp $ */
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.50 2008/01/18 01:03:24 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.51 2008/02/29 06:35:40 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -148,8 +148,8 @@ static void acpiec_attach(device_t, device_t, void *);
static void acpiec_common_attach(device_t, device_t, ACPI_HANDLE,
bus_addr_t, bus_addr_t, ACPI_HANDLE, uint8_t);
static bool acpiec_resume(device_t);
static bool acpiec_suspend(device_t);
static bool acpiec_resume(device_t PMF_FN_PROTO);
static bool acpiec_suspend(device_t PMF_FN_PROTO);
static bool acpiec_parse_gpe_package(device_t, ACPI_HANDLE,
ACPI_HANDLE *, uint8_t *);
@ -396,7 +396,7 @@ post_data_map:
}
static bool
acpiec_suspend(device_t dv)
acpiec_suspend(device_t dv PMF_FN_ARGS)
{
acpiec_cold = true;
@ -404,7 +404,7 @@ acpiec_suspend(device_t dv)
}
static bool
acpiec_resume(device_t dv)
acpiec_resume(device_t dv PMF_FN_ARGS)
{
acpiec_cold = false;

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi_lid.c,v 1.22 2007/12/09 20:27:53 jmcneill Exp $ */
/* $NetBSD: acpi_lid.c,v 1.23 2008/02/29 06:35:40 dyoung Exp $ */
/*
* Copyright 2001, 2003 Wasabi Systems, Inc.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_lid.c,v 1.22 2007/12/09 20:27:53 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_lid.c,v 1.23 2008/02/29 06:35:40 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -72,7 +72,7 @@ CFATTACH_DECL(acpilid, sizeof(struct acpilid_softc),
static void acpilid_status_changed(void *);
static void acpilid_notify_handler(ACPI_HANDLE, UINT32, void *);
static bool acpilid_suspend(device_t);
static bool acpilid_suspend(device_t PMF_FN_PROTO);
/*
* acpilid_match:
@ -204,7 +204,7 @@ acpilid_notify_handler(ACPI_HANDLE handle, UINT32 notify,
}
static bool
acpilid_suspend(device_t dv)
acpilid_suspend(device_t dv PMF_FN_ARGS)
{
struct acpilid_softc *sc = device_private(dv);
ACPI_INTEGER status;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sony_acpi.c,v 1.3 2008/01/06 19:42:03 christos Exp $ */
/* $NetBSD: sony_acpi.c,v 1.4 2008/02/29 06:35:40 dyoung Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@ -36,7 +36,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.3 2008/01/06 19:42:03 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.4 2008/02/29 06:35:40 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -95,8 +95,8 @@ static ACPI_STATUS sony_acpi_eval_set_integer(ACPI_HANDLE, const char *,
ACPI_INTEGER, ACPI_INTEGER *);
static void sony_acpi_quirk_setup(struct sony_acpi_softc *);
static void sony_acpi_notify_handler(ACPI_HANDLE, UINT32, void *);
static bool sony_acpi_suspend(device_t);
static bool sony_acpi_resume(device_t);
static bool sony_acpi_suspend(device_t PMF_FN_PROTO);
static bool sony_acpi_resume(device_t PMF_FN_PROTO);
static void sony_acpi_brightness_down(device_t);
static void sony_acpi_brightness_up(device_t);
static ACPI_STATUS sony_acpi_find_pic(ACPI_HANDLE, UINT32, void *, void **);
@ -395,7 +395,7 @@ sony_acpi_notify_handler(ACPI_HANDLE hdl, UINT32 notify, void *opaque)
}
static bool
sony_acpi_suspend(device_t dv)
sony_acpi_suspend(device_t dv PMF_FN_ARGS)
{
struct sony_acpi_softc *sc = device_private(dv);
@ -405,7 +405,7 @@ sony_acpi_suspend(device_t dv)
}
static bool
sony_acpi_resume(device_t dv)
sony_acpi_resume(device_t dv PMF_FN_ARGS)
{
struct sony_acpi_softc *sc = device_private(dv);

View File

@ -1,4 +1,4 @@
/* $NetBSD: thinkpad_acpi.c,v 1.11 2008/01/28 20:31:55 jmcneill Exp $ */
/* $NetBSD: thinkpad_acpi.c,v 1.12 2008/02/29 06:35:40 dyoung Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: thinkpad_acpi.c,v 1.11 2008/01/28 20:31:55 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: thinkpad_acpi.c,v 1.12 2008/02/29 06:35:40 dyoung Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -122,7 +122,7 @@ static void thinkpad_temp_refresh(struct sysmon_envsys *, envsys_data_t *);
static void thinkpad_wireless_toggle(thinkpad_softc_t *);
static bool thinkpad_resume(device_t);
static bool thinkpad_resume(device_t PMF_FN_PROTO);
static void thinkpad_brightness_up(device_t);
static void thinkpad_brightness_down(device_t);
static uint8_t thinkpad_brightness_read(thinkpad_softc_t *sc);
@ -559,7 +559,7 @@ thinkpad_cmos(thinkpad_softc_t *sc, uint8_t cmd)
}
static bool
thinkpad_resume(device_t dv)
thinkpad_resume(device_t dv PMF_FN_ARGS)
{
ACPI_STATUS rv;
ACPI_HANDLE pubs;