diff options
author | Bob Moore <robert.moore@intel.com> | 2009-02-18 01:44:03 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-03-26 16:38:27 -0400 |
commit | 3371c19c294a4cb3649aa4e84606be8a1d999e61 (patch) | |
tree | 6201f4f821cea0efece26658b88ea3f35810e169 /drivers/acpi/acpica/nspredef.c | |
parent | 32c9ef994d91352b710b948ec369cd18d6bca51b (diff) |
ACPICA: Remove ACPI_GET_OBJECT_TYPE macro
Remove all instances of this obsolete macro, since it is now a
simple reference to ->common.type. There were about 150 invocations
of the macro across 41 files. ACPICA BZ 755.
http://www.acpica.org/bugzilla/show_bug.cgi?id=755
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>
Diffstat (limited to 'drivers/acpi/acpica/nspredef.c')
-rw-r--r-- | drivers/acpi/acpica/nspredef.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/nspredef.c b/drivers/acpi/acpica/nspredef.c index 452703290d35..72dd7b198520 100644 --- a/drivers/acpi/acpica/nspredef.c +++ b/drivers/acpi/acpica/nspredef.c | |||
@@ -221,7 +221,7 @@ acpi_ns_check_predefined_names(struct acpi_namespace_node *node, | |||
221 | 221 | ||
222 | /* For returned Package objects, check the type of all sub-objects */ | 222 | /* For returned Package objects, check the type of all sub-objects */ |
223 | 223 | ||
224 | if (ACPI_GET_OBJECT_TYPE(return_object) == ACPI_TYPE_PACKAGE) { | 224 | if (return_object->common.type == ACPI_TYPE_PACKAGE) { |
225 | status = | 225 | status = |
226 | acpi_ns_check_package(pathname, return_object_ptr, | 226 | acpi_ns_check_package(pathname, return_object_ptr, |
227 | predefined); | 227 | predefined); |
@@ -858,7 +858,7 @@ acpi_ns_check_object_type(char *pathname, | |||
858 | * from all of the predefined names (including elements of returned | 858 | * from all of the predefined names (including elements of returned |
859 | * packages) | 859 | * packages) |
860 | */ | 860 | */ |
861 | switch (ACPI_GET_OBJECT_TYPE(return_object)) { | 861 | switch (return_object->common.type) { |
862 | case ACPI_TYPE_INTEGER: | 862 | case ACPI_TYPE_INTEGER: |
863 | return_btype = ACPI_RTYPE_INTEGER; | 863 | return_btype = ACPI_RTYPE_INTEGER; |
864 | break; | 864 | break; |
@@ -901,7 +901,7 @@ acpi_ns_check_object_type(char *pathname, | |||
901 | 901 | ||
902 | /* For reference objects, check that the reference type is correct */ | 902 | /* For reference objects, check that the reference type is correct */ |
903 | 903 | ||
904 | if (ACPI_GET_OBJECT_TYPE(return_object) == ACPI_TYPE_LOCAL_REFERENCE) { | 904 | if (return_object->common.type == ACPI_TYPE_LOCAL_REFERENCE) { |
905 | status = acpi_ns_check_reference(pathname, return_object); | 905 | status = acpi_ns_check_reference(pathname, return_object); |
906 | } | 906 | } |
907 | 907 | ||
@@ -1006,7 +1006,7 @@ acpi_ns_repair_object(u32 expected_btypes, | |||
1006 | union acpi_operand_object *new_object; | 1006 | union acpi_operand_object *new_object; |
1007 | acpi_size length; | 1007 | acpi_size length; |
1008 | 1008 | ||
1009 | switch (ACPI_GET_OBJECT_TYPE(return_object)) { | 1009 | switch (return_object->common.type) { |
1010 | case ACPI_TYPE_BUFFER: | 1010 | case ACPI_TYPE_BUFFER: |
1011 | 1011 | ||
1012 | if (!(expected_btypes & ACPI_RTYPE_STRING)) { | 1012 | if (!(expected_btypes & ACPI_RTYPE_STRING)) { |