diff options
author | Chao Guan <chao.guan@intel.com> | 2013-06-07 20:58:14 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-15 18:55:05 -0400 |
commit | 1d1ea1b723d9f239f736b8cf284327cbbf9d15d1 (patch) | |
tree | a94241a1f42a8952415d68e623f58de6d43c6369 /drivers/acpi/acpica/uttrack.c | |
parent | b6872ff9a4785a790f9647ee2076e7e616a3bb0e (diff) |
ACPICA: Standardize all switch() blocks
After many years, different formatting for switch() has crept in.
This change makes every switch block identical. Chao Guan.
ACPICA bugzilla 997.
References: https://bugs.acpica.org/show_bug.cgi?id=997
Signed-off-by: Chao Guan <chao.guan@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/uttrack.c')
-rw-r--r-- | drivers/acpi/acpica/uttrack.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/uttrack.c b/drivers/acpi/acpica/uttrack.c index 62774c7b76a8..160f13f4aab5 100644 --- a/drivers/acpi/acpica/uttrack.c +++ b/drivers/acpi/acpica/uttrack.c | |||
@@ -603,6 +603,7 @@ void acpi_ut_dump_allocations(u32 component, const char *module) | |||
603 | switch (ACPI_GET_DESCRIPTOR_TYPE | 603 | switch (ACPI_GET_DESCRIPTOR_TYPE |
604 | (descriptor)) { | 604 | (descriptor)) { |
605 | case ACPI_DESC_TYPE_OPERAND: | 605 | case ACPI_DESC_TYPE_OPERAND: |
606 | |||
606 | if (element->size == | 607 | if (element->size == |
607 | sizeof(union | 608 | sizeof(union |
608 | acpi_operand_object)) | 609 | acpi_operand_object)) |
@@ -613,6 +614,7 @@ void acpi_ut_dump_allocations(u32 component, const char *module) | |||
613 | break; | 614 | break; |
614 | 615 | ||
615 | case ACPI_DESC_TYPE_PARSER: | 616 | case ACPI_DESC_TYPE_PARSER: |
617 | |||
616 | if (element->size == | 618 | if (element->size == |
617 | sizeof(union | 619 | sizeof(union |
618 | acpi_parse_object)) { | 620 | acpi_parse_object)) { |
@@ -622,6 +624,7 @@ void acpi_ut_dump_allocations(u32 component, const char *module) | |||
622 | break; | 624 | break; |
623 | 625 | ||
624 | case ACPI_DESC_TYPE_NAMED: | 626 | case ACPI_DESC_TYPE_NAMED: |
627 | |||
625 | if (element->size == | 628 | if (element->size == |
626 | sizeof(struct | 629 | sizeof(struct |
627 | acpi_namespace_node)) | 630 | acpi_namespace_node)) |
@@ -632,6 +635,7 @@ void acpi_ut_dump_allocations(u32 component, const char *module) | |||
632 | break; | 635 | break; |
633 | 636 | ||
634 | default: | 637 | default: |
638 | |||
635 | break; | 639 | break; |
636 | } | 640 | } |
637 | 641 | ||
@@ -639,6 +643,7 @@ void acpi_ut_dump_allocations(u32 component, const char *module) | |||
639 | 643 | ||
640 | switch (descriptor_type) { | 644 | switch (descriptor_type) { |
641 | case ACPI_DESC_TYPE_OPERAND: | 645 | case ACPI_DESC_TYPE_OPERAND: |
646 | |||
642 | acpi_os_printf | 647 | acpi_os_printf |
643 | ("%12.12s RefCount 0x%04X\n", | 648 | ("%12.12s RefCount 0x%04X\n", |
644 | acpi_ut_get_type_name | 649 | acpi_ut_get_type_name |
@@ -649,6 +654,7 @@ void acpi_ut_dump_allocations(u32 component, const char *module) | |||
649 | break; | 654 | break; |
650 | 655 | ||
651 | case ACPI_DESC_TYPE_PARSER: | 656 | case ACPI_DESC_TYPE_PARSER: |
657 | |||
652 | acpi_os_printf | 658 | acpi_os_printf |
653 | ("AmlOpcode 0x%04hX\n", | 659 | ("AmlOpcode 0x%04hX\n", |
654 | descriptor->op.asl. | 660 | descriptor->op.asl. |
@@ -656,6 +662,7 @@ void acpi_ut_dump_allocations(u32 component, const char *module) | |||
656 | break; | 662 | break; |
657 | 663 | ||
658 | case ACPI_DESC_TYPE_NAMED: | 664 | case ACPI_DESC_TYPE_NAMED: |
665 | |||
659 | acpi_os_printf("%4.4s\n", | 666 | acpi_os_printf("%4.4s\n", |
660 | acpi_ut_get_node_name | 667 | acpi_ut_get_node_name |
661 | (&descriptor-> | 668 | (&descriptor-> |
@@ -663,6 +670,7 @@ void acpi_ut_dump_allocations(u32 component, const char *module) | |||
663 | break; | 670 | break; |
664 | 671 | ||
665 | default: | 672 | default: |
673 | |||
666 | acpi_os_printf("\n"); | 674 | acpi_os_printf("\n"); |
667 | break; | 675 | break; |
668 | } | 676 | } |