summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authortakawata <takawata@FreeBSD.org>2007-10-25 20:02:38 +0000
committertakawata <takawata@FreeBSD.org>2007-10-25 20:02:38 +0000
commit8efeec02d91d89674af93b482df58ea3ebe49b89 (patch)
tree506fbac4fc2be170a9f96b266445464e1a24a4eb /sys/dev/acpica
parent672f4a5d6c97245fd3c101614e894c3bd51255eb (diff)
downloadFreeBSD-src-8efeec02d91d89674af93b482df58ea3ebe49b89.zip
FreeBSD-src-8efeec02d91d89674af93b482df58ea3ebe49b89.tar.gz
More style nit.
Pointed out by: njl.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi_ec.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index 5f0a021..86fb4b9 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -468,7 +468,7 @@ acpi_ec_attach(device_t dev)
sc->ec_gpebit = params->gpe_bit;
sc->ec_gpehandle = params->gpe_handle;
sc->ec_uid = params->uid;
- sc->ec_suspending = 0;
+ sc->ec_suspending = FALSE;
free(params, M_TEMP);
/* Attach bus resources for data and command/status ports. */
@@ -553,22 +553,19 @@ acpi_ec_suspend(device_t dev)
{
struct acpi_ec_softc *sc;
- /* Disable the GPE so we don't get EC events during shutdown. */
sc = device_get_softc(dev);
- sc->ec_suspending = 1;
+ sc->ec_suspending = TRUE;
return (0);
}
-
static int
acpi_ec_resume(device_t dev)
{
struct acpi_ec_softc *sc;
- /* Disable the GPE so we don't get EC events during shutdown. */
sc = device_get_softc(dev);
- sc->ec_suspending = 0;
+ sc->ec_suspending = FALSE;
return (0);
}
OpenPOWER on IntegriCloud