ACPI: eliminate hardcode for ACPI0007 _HID
Subsystems (2)
PATCH 1/1 ACPI: eliminate hardcode for ACPI0007 _HID
the original commit 9eccbc removes the macro definition of ACPI0007, but in commit c1e0ddbf this value is used again. To avoid hard-code in the multi-places, revert the original patch and update the usage for it.
Signed-off-by Chen Gong <[email protected]>
--- drivers/acpi/processor_core.c | 2 +- drivers/acpi/processor_driver.c | 2 +- include/acpi/acpi_drivers.h | 1 + 3 files changed, 3 insertions(+), 2 deletions(-)
drivers/acpi/processor_core.c +1 -1
@@ -346,5 +346,5 @@ void __init acpi_early_processor_set_pdc(void)acpi_walk_namespace (ACPI_TYPE_PROCESSOR ,ACPI_ROOT_OBJECT ,ACPI_UINT32_MAX , early_init_pdc,NULL ,NULL ,NULL ); -acpi_get_devices ("ACPI0007" , early_init_pdc,NULL ,NULL ); +acpi_get_devices (ACPI_PROCESSOR_HID , early_init_pdc,NULL ,NULL ); }
drivers/acpi/processor_driver.c +1 -1
@@ -90,7 +90,7 @@ static int acpi_processor_handle_eject(struct acpi_processor *pr);static const struct acpi_device_id processor_device_ids[] = { {ACPI_PROCESSOR_OBJECT_HID ,0 }, - {"ACPI0007" ,0 }, + {ACPI_PROCESSOR_HID ,0 }, {"" ,0 }, };MODULE_DEVICE_TABLE (acpi, processor_device_ids);
include/acpi/acpi_drivers.h +1 -0
@@ -58,6 +58,7 @@#define ACPI_POWER_HID "LNXPOWER"#define ACPI_PROCESSOR_OBJECT_HID "LNXCPU" +#define ACPI_PROCESSOR_HID "ACPI0007"#define ACPI_SYSTEM_HID "LNXSYSTM"#define ACPI_THERMAL_HID "LNXTHERM"#define ACPI_BUTTON_HID_POWERF "LNXPWRBN"
Signature · 1 line
1.7.3.1.120.g38a18