diff options
| author | Jiang Liu <jiang.liu@linux.intel.com> | 2014-02-19 01:02:15 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-20 18:27:46 -0500 |
| commit | 05730c1952787faa422ea2898634a1f9cdb61161 (patch) | |
| tree | b6e1a60c144d45ea10a28bbe3a0177c62e4df23d | |
| parent | 6d0abeca3242a88cab8232e4acd7e2bf088f3bc2 (diff) | |
ACPI: rename acpi_evaluate_hotplug_ost() to acpi_evaluate_ost()
Rename acpi_evaluate_hotplug_ost() to acpi_evaluate_ost() for later
resue.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
| -rw-r--r-- | drivers/acpi/utils.c | 14 | ||||
| -rw-r--r-- | include/acpi/acpi_bus.h | 10 |
2 files changed, 13 insertions, 11 deletions
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index 85e3b612bdc0..19d016974080 100644 --- a/drivers/acpi/utils.c +++ b/drivers/acpi/utils.c | |||
| @@ -433,17 +433,15 @@ EXPORT_SYMBOL(acpi_get_physical_device_location); | |||
| 433 | * When the platform does not support _OST, this function has no effect. | 433 | * When the platform does not support _OST, this function has no effect. |
| 434 | */ | 434 | */ |
| 435 | acpi_status | 435 | acpi_status |
| 436 | acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event, | 436 | acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code, |
| 437 | u32 status_code, struct acpi_buffer *status_buf) | 437 | struct acpi_buffer *status_buf) |
| 438 | { | 438 | { |
| 439 | #ifdef ACPI_HOTPLUG_OST | ||
| 440 | union acpi_object params[3] = { | 439 | union acpi_object params[3] = { |
| 441 | {.type = ACPI_TYPE_INTEGER,}, | 440 | {.type = ACPI_TYPE_INTEGER,}, |
| 442 | {.type = ACPI_TYPE_INTEGER,}, | 441 | {.type = ACPI_TYPE_INTEGER,}, |
| 443 | {.type = ACPI_TYPE_BUFFER,} | 442 | {.type = ACPI_TYPE_BUFFER,} |
| 444 | }; | 443 | }; |
| 445 | struct acpi_object_list arg_list = {3, params}; | 444 | struct acpi_object_list arg_list = {3, params}; |
| 446 | acpi_status status; | ||
| 447 | 445 | ||
| 448 | params[0].integer.value = source_event; | 446 | params[0].integer.value = source_event; |
| 449 | params[1].integer.value = status_code; | 447 | params[1].integer.value = status_code; |
| @@ -455,13 +453,9 @@ acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event, | |||
| 455 | params[2].buffer.length = 0; | 453 | params[2].buffer.length = 0; |
| 456 | } | 454 | } |
| 457 | 455 | ||
| 458 | status = acpi_evaluate_object(handle, "_OST", &arg_list, NULL); | 456 | return acpi_evaluate_object(handle, "_OST", &arg_list, NULL); |
| 459 | return status; | ||
| 460 | #else | ||
| 461 | return AE_OK; | ||
| 462 | #endif | ||
| 463 | } | 457 | } |
| 464 | EXPORT_SYMBOL(acpi_evaluate_hotplug_ost); | 458 | EXPORT_SYMBOL(acpi_evaluate_ost); |
| 465 | 459 | ||
| 466 | /** | 460 | /** |
| 467 | * acpi_handle_printk: Print message with ACPI prefix and object path | 461 | * acpi_handle_printk: Print message with ACPI prefix and object path |
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 8256eb4ad057..adef502cb8f1 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
| @@ -49,8 +49,16 @@ acpi_evaluate_reference(acpi_handle handle, | |||
| 49 | struct acpi_object_list *arguments, | 49 | struct acpi_object_list *arguments, |
| 50 | struct acpi_handle_list *list); | 50 | struct acpi_handle_list *list); |
| 51 | acpi_status | 51 | acpi_status |
| 52 | acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code, | ||
| 53 | struct acpi_buffer *status_buf); | ||
| 54 | #ifdef ACPI_HOTPLUG_OST | ||
| 55 | #define acpi_evaluate_hotplug_ost acpi_evaluate_ost | ||
| 56 | #else | ||
| 57 | static inline acpi_status | ||
| 52 | acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event, | 58 | acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event, |
| 53 | u32 status_code, struct acpi_buffer *status_buf); | 59 | u32 status_code, struct acpi_buffer *status_buf) |
| 60 | { return AE_OK; } | ||
| 61 | #endif | ||
| 54 | 62 | ||
| 55 | acpi_status | 63 | acpi_status |
| 56 | acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld); | 64 | acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld); |
