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>
This commit is contained in:
parent
6d0abeca32
commit
05730c1952
@ -433,17 +433,15 @@ EXPORT_SYMBOL(acpi_get_physical_device_location);
|
|||||||
* When the platform does not support _OST, this function has no effect.
|
* When the platform does not support _OST, this function has no effect.
|
||||||
*/
|
*/
|
||||||
acpi_status
|
acpi_status
|
||||||
acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event,
|
acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code,
|
||||||
u32 status_code, struct acpi_buffer *status_buf)
|
struct acpi_buffer *status_buf)
|
||||||
{
|
{
|
||||||
#ifdef ACPI_HOTPLUG_OST
|
|
||||||
union acpi_object params[3] = {
|
union acpi_object params[3] = {
|
||||||
{.type = ACPI_TYPE_INTEGER,},
|
{.type = ACPI_TYPE_INTEGER,},
|
||||||
{.type = ACPI_TYPE_INTEGER,},
|
{.type = ACPI_TYPE_INTEGER,},
|
||||||
{.type = ACPI_TYPE_BUFFER,}
|
{.type = ACPI_TYPE_BUFFER,}
|
||||||
};
|
};
|
||||||
struct acpi_object_list arg_list = {3, params};
|
struct acpi_object_list arg_list = {3, params};
|
||||||
acpi_status status;
|
|
||||||
|
|
||||||
params[0].integer.value = source_event;
|
params[0].integer.value = source_event;
|
||||||
params[1].integer.value = status_code;
|
params[1].integer.value = status_code;
|
||||||
@ -455,13 +453,9 @@ acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event,
|
|||||||
params[2].buffer.length = 0;
|
params[2].buffer.length = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
status = acpi_evaluate_object(handle, "_OST", &arg_list, NULL);
|
return acpi_evaluate_object(handle, "_OST", &arg_list, NULL);
|
||||||
return status;
|
|
||||||
#else
|
|
||||||
return AE_OK;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(acpi_evaluate_hotplug_ost);
|
EXPORT_SYMBOL(acpi_evaluate_ost);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* acpi_handle_printk: Print message with ACPI prefix and object path
|
* acpi_handle_printk: Print message with ACPI prefix and object path
|
||||||
|
@ -49,8 +49,16 @@ acpi_evaluate_reference(acpi_handle handle,
|
|||||||
struct acpi_object_list *arguments,
|
struct acpi_object_list *arguments,
|
||||||
struct acpi_handle_list *list);
|
struct acpi_handle_list *list);
|
||||||
acpi_status
|
acpi_status
|
||||||
|
acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code,
|
||||||
|
struct acpi_buffer *status_buf);
|
||||||
|
#ifdef ACPI_HOTPLUG_OST
|
||||||
|
#define acpi_evaluate_hotplug_ost acpi_evaluate_ost
|
||||||
|
#else
|
||||||
|
static inline acpi_status
|
||||||
acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event,
|
acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event,
|
||||||
u32 status_code, struct acpi_buffer *status_buf);
|
u32 status_code, struct acpi_buffer *status_buf)
|
||||||
|
{ return AE_OK; }
|
||||||
|
#endif
|
||||||
|
|
||||||
acpi_status
|
acpi_status
|
||||||
acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld);
|
acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld);
|
||||||
|
Loading…
Reference in New Issue
Block a user