Use General definition for general notify.

This commit is contained in:
Takanori Watanabe 2005-05-19 09:13:26 +00:00
parent 6f21c8127a
commit b4b4c81522

View File

@ -52,8 +52,6 @@ ACPI_MODULE_NAME("AC_ADAPTER")
/* Number of times to retry initialization before giving up. */
#define ACPI_ACAD_RETRY_MAX 6
#define ACPI_DEVICE_CHECK_PNP 0x00
#define ACPI_DEVICE_CHECK_EXISTENCE 0x01
#define ACPI_POWERSOURCE_STAT_CHANGE 0x80
struct acpi_acad_softc {
@ -122,8 +120,8 @@ acpi_acad_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
dev = (device_t)context;
switch (notify) {
case ACPI_DEVICE_CHECK_PNP:
case ACPI_DEVICE_CHECK_EXISTENCE:
case ACPI_NOTIFY_BUS_CHECK:
case ACPI_NOTIFY_DEVICE_CHECK:
case ACPI_POWERSOURCE_STAT_CHANGE:
/* Temporarily. It is better to notify policy manager */
AcpiOsQueueForExecution(OSD_PRIORITY_LO, acpi_acad_get_status, context);