summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_acad.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-01-31 09:30:57 +0000
committermsmith <msmith@FreeBSD.org>2001-01-31 09:30:57 +0000
commit30a81dd2b20ee1330959af3ebd4f3d887e9ef7ef (patch)
tree55e22fabd089c50a01caab740b38e45ab4bba423 /sys/dev/acpica/acpi_acad.c
parentcae1d97ec5ea6cc7dc2af0ab52e477ca4022a3b5 (diff)
downloadFreeBSD-src-30a81dd2b20ee1330959af3ebd4f3d887e9ef7ef.zip
FreeBSD-src-30a81dd2b20ee1330959af3ebd4f3d887e9ef7ef.tar.gz
ACPI_NUMBER becomes ACPI_INTEGER. acpi_EvaluateNumber becomes
acpi_EvaluateInteger. Use acpi_EvaluateInteger instead of doing things the hard way where possible. AcpiSetSystemSleepState (unofficial) becomes AcpiEnterSleepState. Use the AcpiGbl_FADT pointer rather than searching for the FADT.
Diffstat (limited to 'sys/dev/acpica/acpi_acad.c')
-rw-r--r--sys/dev/acpica/acpi_acad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c
index 4c61225..a668048 100644
--- a/sys/dev/acpica/acpi_acad.c
+++ b/sys/dev/acpica/acpi_acad.c
@@ -64,7 +64,7 @@ acpi_acad_get_status(void *context)
struct acpi_acad_softc *sc = device_get_softc(dev);
ACPI_HANDLE h = acpi_get_handle(dev);
- if (acpi_EvaluateNumber(h, "_PSR", &sc->status) != AE_OK)
+ if (acpi_EvaluateInteger(h, "_PSR", &sc->status) != AE_OK)
return;
device_printf(dev,"%s\n",(sc->status) ? "On Line" : "Off Line");
}
OpenPOWER on IntegriCloud