浏览代码

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: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Bob Moore 16 年之前
父节点
当前提交
8d5c54b65b
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      include/acpi/acobject.h

+ 7 - 0
include/acpi/acobject.h

@@ -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;
 };
 };
 
 
 /******************************************************************************
 /******************************************************************************