Commit 8d5c54b6 authored by Bob Moore's avatar Bob Moore Committed by Len Brown

ACPICA: Add namespace node to operand object union

Add ACPI_NAMESPACE_NODE to the ACPI_OPERAND_OBJECT in order to
simplify code that accepts both of these objects. A common type
field is used to differentiate them.
Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 23d3e055
...@@ -379,6 +379,13 @@ union acpi_operand_object { ...@@ -379,6 +379,13 @@ union acpi_operand_object {
struct acpi_object_extra extra; struct acpi_object_extra extra;
struct acpi_object_data data; struct acpi_object_data data;
struct acpi_object_cache_list cache; struct acpi_object_cache_list cache;
/*
* Add namespace node to union in order to simplify code that accepts both
* ACPI_OPERAND_OBJECTs and ACPI_NAMESPACE_NODEs. The structures share
* a common descriptor_type field in order to differentiate them.
*/
struct acpi_namespace_node node;
}; };
/****************************************************************************** /******************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment