aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/exdump.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2009-02-18 01:44:03 -0500
committerLen Brown <len.brown@intel.com>2009-03-26 16:38:27 -0400
commit3371c19c294a4cb3649aa4e84606be8a1d999e61 (patch)
tree6201f4f821cea0efece26658b88ea3f35810e169 /drivers/acpi/acpica/exdump.c
parent32c9ef994d91352b710b948ec369cd18d6bca51b (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/exdump.c')
-rw-r--r--drivers/acpi/acpica/exdump.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/acpi/acpica/exdump.c b/drivers/acpi/acpica/exdump.c
index aa313574b0df..193d23312e18 100644
--- a/drivers/acpi/acpica/exdump.c
+++ b/drivers/acpi/acpica/exdump.c
@@ -492,7 +492,7 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)
492 492
493 /* Decode object type */ 493 /* Decode object type */
494 494
495 switch (ACPI_GET_OBJECT_TYPE(obj_desc)) { 495 switch (obj_desc->common.type) {
496 case ACPI_TYPE_LOCAL_REFERENCE: 496 case ACPI_TYPE_LOCAL_REFERENCE:
497 497
498 acpi_os_printf("Reference: [%s] ", 498 acpi_os_printf("Reference: [%s] ",
@@ -531,7 +531,7 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)
531 531
532 acpi_os_printf("%X", obj_desc->reference.value); 532 acpi_os_printf("%X", obj_desc->reference.value);
533 533
534 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { 534 if (obj_desc->common.type == ACPI_TYPE_INTEGER) {
535 535
536 /* Value is an Integer */ 536 /* Value is an Integer */
537 537
@@ -548,7 +548,7 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)
548 548
549 acpi_os_printf("%X", obj_desc->reference.value); 549 acpi_os_printf("%X", obj_desc->reference.value);
550 550
551 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { 551 if (obj_desc->common.type == ACPI_TYPE_INTEGER) {
552 552
553 /* Value is an Integer */ 553 /* Value is an Integer */
554 554
@@ -686,9 +686,8 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)
686 686
687 if (!obj_desc->buffer_field.buffer_obj) { 687 if (!obj_desc->buffer_field.buffer_obj) {
688 ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "*NULL*\n")); 688 ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "*NULL*\n"));
689 } else 689 } else if ((obj_desc->buffer_field.buffer_obj)->common.type !=
690 if (ACPI_GET_OBJECT_TYPE(obj_desc->buffer_field.buffer_obj) 690 ACPI_TYPE_BUFFER) {
691 != ACPI_TYPE_BUFFER) {
692 acpi_os_printf("*not a Buffer*\n"); 691 acpi_os_printf("*not a Buffer*\n");
693 } else { 692 } else {
694 acpi_ex_dump_operand(obj_desc->buffer_field.buffer_obj, 693 acpi_ex_dump_operand(obj_desc->buffer_field.buffer_obj,
@@ -737,8 +736,7 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)
737 default: 736 default:
738 /* Unknown Type */ 737 /* Unknown Type */
739 738
740 acpi_os_printf("Unknown Type %X\n", 739 acpi_os_printf("Unknown Type %X\n", obj_desc->common.type);
741 ACPI_GET_OBJECT_TYPE(obj_desc));
742 break; 740 break;
743 } 741 }
744 742
@@ -939,7 +937,7 @@ acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
939 937
940 /* Packages may only contain a few object types */ 938 /* Packages may only contain a few object types */
941 939
942 switch (ACPI_GET_OBJECT_TYPE(obj_desc)) { 940 switch (obj_desc->common.type) {
943 case ACPI_TYPE_INTEGER: 941 case ACPI_TYPE_INTEGER:
944 942
945 acpi_os_printf("[Integer] = %8.8X%8.8X\n", 943 acpi_os_printf("[Integer] = %8.8X%8.8X\n",
@@ -990,8 +988,7 @@ acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
990 988
991 default: 989 default:
992 990
993 acpi_os_printf("[Unknown Type] %X\n", 991 acpi_os_printf("[Unknown Type] %X\n", obj_desc->common.type);
994 ACPI_GET_OBJECT_TYPE(obj_desc));
995 break; 992 break;
996 } 993 }
997} 994}