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/exresop.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/exresop.c')
-rw-r--r-- | drivers/acpi/acpica/exresop.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/exresop.c b/drivers/acpi/acpica/exresop.c index 9fb9f5e9a4da..00e5af7129c1 100644 --- a/drivers/acpi/acpica/exresop.c +++ b/drivers/acpi/acpica/exresop.c | |||
@@ -307,7 +307,6 @@ acpi_ex_resolve_operands(u16 opcode, | |||
307 | case ARGI_TARGETREF: /* Allows implicit conversion rules before store */ | 307 | case ARGI_TARGETREF: /* Allows implicit conversion rules before store */ |
308 | case ARGI_FIXED_TARGET: /* No implicit conversion before store to target */ | 308 | case ARGI_FIXED_TARGET: /* No implicit conversion before store to target */ |
309 | case ARGI_SIMPLE_TARGET: /* Name, Local, or arg - no implicit conversion */ | 309 | case ARGI_SIMPLE_TARGET: /* Name, Local, or arg - no implicit conversion */ |
310 | |||
311 | /* | 310 | /* |
312 | * Need an operand of type ACPI_TYPE_LOCAL_REFERENCE | 311 | * Need an operand of type ACPI_TYPE_LOCAL_REFERENCE |
313 | * A Namespace Node is OK as-is | 312 | * A Namespace Node is OK as-is |
@@ -326,7 +325,6 @@ acpi_ex_resolve_operands(u16 opcode, | |||
326 | goto next_operand; | 325 | goto next_operand; |
327 | 326 | ||
328 | case ARGI_DATAREFOBJ: /* Store operator only */ | 327 | case ARGI_DATAREFOBJ: /* Store operator only */ |
329 | |||
330 | /* | 328 | /* |
331 | * We don't want to resolve index_op reference objects during | 329 | * We don't want to resolve index_op reference objects during |
332 | * a store because this would be an implicit de_ref_of operation. | 330 | * a store because this would be an implicit de_ref_of operation. |
@@ -343,7 +341,9 @@ acpi_ex_resolve_operands(u16 opcode, | |||
343 | break; | 341 | break; |
344 | 342 | ||
345 | default: | 343 | default: |
344 | |||
346 | /* All cases covered above */ | 345 | /* All cases covered above */ |
346 | |||
347 | break; | 347 | break; |
348 | } | 348 | } |
349 | 349 | ||
@@ -433,7 +433,6 @@ acpi_ex_resolve_operands(u16 opcode, | |||
433 | goto next_operand; | 433 | goto next_operand; |
434 | 434 | ||
435 | case ARGI_BUFFER: | 435 | case ARGI_BUFFER: |
436 | |||
437 | /* | 436 | /* |
438 | * Need an operand of type ACPI_TYPE_BUFFER, | 437 | * Need an operand of type ACPI_TYPE_BUFFER, |
439 | * But we can implicitly convert from a STRING or INTEGER | 438 | * But we can implicitly convert from a STRING or INTEGER |
@@ -459,7 +458,6 @@ acpi_ex_resolve_operands(u16 opcode, | |||
459 | goto next_operand; | 458 | goto next_operand; |
460 | 459 | ||
461 | case ARGI_STRING: | 460 | case ARGI_STRING: |
462 | |||
463 | /* | 461 | /* |
464 | * Need an operand of type ACPI_TYPE_STRING, | 462 | * Need an operand of type ACPI_TYPE_STRING, |
465 | * But we can implicitly convert from a BUFFER or INTEGER | 463 | * But we can implicitly convert from a BUFFER or INTEGER |
@@ -562,6 +560,7 @@ acpi_ex_resolve_operands(u16 opcode, | |||
562 | break; | 560 | break; |
563 | 561 | ||
564 | default: | 562 | default: |
563 | |||
565 | ACPI_ERROR((AE_INFO, | 564 | ACPI_ERROR((AE_INFO, |
566 | "Needed [Buffer/String/Package/Reference], found [%s] %p", | 565 | "Needed [Buffer/String/Package/Reference], found [%s] %p", |
567 | acpi_ut_get_object_type_name | 566 | acpi_ut_get_object_type_name |
@@ -584,6 +583,7 @@ acpi_ex_resolve_operands(u16 opcode, | |||
584 | break; | 583 | break; |
585 | 584 | ||
586 | default: | 585 | default: |
586 | |||
587 | ACPI_ERROR((AE_INFO, | 587 | ACPI_ERROR((AE_INFO, |
588 | "Needed [Buffer/String/Package], found [%s] %p", | 588 | "Needed [Buffer/String/Package], found [%s] %p", |
589 | acpi_ut_get_object_type_name | 589 | acpi_ut_get_object_type_name |
@@ -605,6 +605,7 @@ acpi_ex_resolve_operands(u16 opcode, | |||
605 | break; | 605 | break; |
606 | 606 | ||
607 | default: | 607 | default: |
608 | |||
608 | ACPI_ERROR((AE_INFO, | 609 | ACPI_ERROR((AE_INFO, |
609 | "Needed [Region/Buffer], found [%s] %p", | 610 | "Needed [Region/Buffer], found [%s] %p", |
610 | acpi_ut_get_object_type_name | 611 | acpi_ut_get_object_type_name |