From: Bob Moore Date: Sat, 27 Sep 2008 02:22:09 +0000 (+0800) Subject: ACPICA: Add namespace node to operand object union X-Git-Tag: v2.6.28-rc1~26^2~26^2~17 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8d5c54b65b20bf81fa9841a27143e2f71f3a7756;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Lin Ming Signed-off-by: Len Brown --- diff --git a/include/acpi/acobject.h b/include/acpi/acobject.h index e9657dac69b..0ca39265bb0 100644 --- a/include/acpi/acobject.h +++ b/include/acpi/acobject.h @@ -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; }; /******************************************************************************