ACPI: use _STA bit names rather than 0x0F
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user