|
@@ -47,39 +47,6 @@
|
|
#define _COMPONENT ACPI_UTILITIES
|
|
#define _COMPONENT ACPI_UTILITIES
|
|
ACPI_MODULE_NAME("utstate")
|
|
ACPI_MODULE_NAME("utstate")
|
|
|
|
|
|
-/*******************************************************************************
|
|
|
|
- *
|
|
|
|
- * FUNCTION: acpi_ut_create_pkg_state_and_push
|
|
|
|
- *
|
|
|
|
- * PARAMETERS: object - Object to be added to the new state
|
|
|
|
- * action - Increment/Decrement
|
|
|
|
- * state_list - List the state will be added to
|
|
|
|
- *
|
|
|
|
- * RETURN: Status
|
|
|
|
- *
|
|
|
|
- * DESCRIPTION: Create a new state and push it
|
|
|
|
- *
|
|
|
|
- ******************************************************************************/
|
|
|
|
-acpi_status
|
|
|
|
-acpi_ut_create_pkg_state_and_push(void *internal_object,
|
|
|
|
- void *external_object,
|
|
|
|
- u16 index,
|
|
|
|
- union acpi_generic_state **state_list)
|
|
|
|
-{
|
|
|
|
- union acpi_generic_state *state;
|
|
|
|
-
|
|
|
|
- ACPI_FUNCTION_ENTRY();
|
|
|
|
-
|
|
|
|
- state =
|
|
|
|
- acpi_ut_create_pkg_state(internal_object, external_object, index);
|
|
|
|
- if (!state) {
|
|
|
|
- return (AE_NO_MEMORY);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- acpi_ut_push_generic_state(state_list, state);
|
|
|
|
- return (AE_OK);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/*******************************************************************************
|
|
/*******************************************************************************
|
|
*
|
|
*
|
|
* FUNCTION: acpi_ut_push_generic_state
|
|
* FUNCTION: acpi_ut_push_generic_state
|
|
@@ -92,7 +59,6 @@ acpi_ut_create_pkg_state_and_push(void *internal_object,
|
|
* DESCRIPTION: Push a state object onto a state stack
|
|
* DESCRIPTION: Push a state object onto a state stack
|
|
*
|
|
*
|
|
******************************************************************************/
|
|
******************************************************************************/
|
|
-
|
|
|
|
void
|
|
void
|
|
acpi_ut_push_generic_state(union acpi_generic_state **list_head,
|
|
acpi_ut_push_generic_state(union acpi_generic_state **list_head,
|
|
union acpi_generic_state *state)
|
|
union acpi_generic_state *state)
|