ACPI: use _STA bit names rather than 0x0F
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 25 Apr 2007 18:20:58 +0000 (14:20 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 25 Apr 2007 18:20:58 +0000 (14:20 -0400)
Be explicit about what "device->status = 0x0F" really means.

syntax only.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/bus.c
drivers/acpi/scan.c

index dd49ea0d0ed3606a69dfc2a9580b64768ced7cb9..e5084ececb6ff7f004326a3fcdf24828c45e2f0a 100644 (file)
@@ -103,7 +103,9 @@ int acpi_bus_get_status(struct acpi_device *device)
        else if (device->parent)
                device->status = device->parent->status;
        else
-               STRUCT_TO_INT(device->status) = 0x0F;
+               STRUCT_TO_INT(device->status) =
+                   ACPI_STA_DEVICE_PRESENT | ACPI_STA_DEVICE_ENABLED |
+                   ACPI_STA_DEVICE_UI      | ACPI_STA_DEVICE_FUNCTIONING;
 
        if (device->status.functional && !device->status.present) {
                printk(KERN_WARNING PREFIX "Device [%s] status [%08x]: "
index bb0e0da39fb15d355be664e5ae23f1dc5e632441..d80dd84e5bfdaab0713177c5cb21db15aac07996 100644 (file)
@@ -1068,7 +1068,9 @@ acpi_add_single_object(struct acpi_device **child,
                }
                break;
        default:
-               STRUCT_TO_INT(device->status) = 0x0F;
+               STRUCT_TO_INT(device->status) =
+                   ACPI_STA_DEVICE_PRESENT | ACPI_STA_DEVICE_ENABLED |
+                   ACPI_STA_DEVICE_UI      | ACPI_STA_DEVICE_FUNCTIONING;
                break;
        }