]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPICA: Add namespace node to operand object union
authorBob Moore <robert.moore@intel.com>
Sat, 27 Sep 2008 02:22:09 +0000 (10:22 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 23 Oct 2008 03:14:42 +0000 (23:14 -0400)
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>
include/acpi/acobject.h

index e9657dac69b788b6ed391efc4e838c5338f67889..0ca39265bb0f477a3ab63c920233817bc7f61c3c 100644 (file)
@@ -379,6 +379,13 @@ union acpi_operand_object {
        struct acpi_object_extra extra;
        struct acpi_object_data data;
        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;
 };
 
 /******************************************************************************