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/exprep.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/exprep.c')
-rw-r--r-- | drivers/acpi/acpica/exprep.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/exprep.c b/drivers/acpi/acpica/exprep.c index 6b728aef2dca..5a588611ab48 100644 --- a/drivers/acpi/acpica/exprep.c +++ b/drivers/acpi/acpica/exprep.c | |||
@@ -253,26 +253,31 @@ acpi_ex_decode_field_access(union acpi_operand_object *obj_desc, | |||
253 | 253 | ||
254 | case AML_FIELD_ACCESS_BYTE: | 254 | case AML_FIELD_ACCESS_BYTE: |
255 | case AML_FIELD_ACCESS_BUFFER: /* ACPI 2.0 (SMBus Buffer) */ | 255 | case AML_FIELD_ACCESS_BUFFER: /* ACPI 2.0 (SMBus Buffer) */ |
256 | |||
256 | byte_alignment = 1; | 257 | byte_alignment = 1; |
257 | bit_length = 8; | 258 | bit_length = 8; |
258 | break; | 259 | break; |
259 | 260 | ||
260 | case AML_FIELD_ACCESS_WORD: | 261 | case AML_FIELD_ACCESS_WORD: |
262 | |||
261 | byte_alignment = 2; | 263 | byte_alignment = 2; |
262 | bit_length = 16; | 264 | bit_length = 16; |
263 | break; | 265 | break; |
264 | 266 | ||
265 | case AML_FIELD_ACCESS_DWORD: | 267 | case AML_FIELD_ACCESS_DWORD: |
268 | |||
266 | byte_alignment = 4; | 269 | byte_alignment = 4; |
267 | bit_length = 32; | 270 | bit_length = 32; |
268 | break; | 271 | break; |
269 | 272 | ||
270 | case AML_FIELD_ACCESS_QWORD: /* ACPI 2.0 */ | 273 | case AML_FIELD_ACCESS_QWORD: /* ACPI 2.0 */ |
274 | |||
271 | byte_alignment = 8; | 275 | byte_alignment = 8; |
272 | bit_length = 64; | 276 | bit_length = 64; |
273 | break; | 277 | break; |
274 | 278 | ||
275 | default: | 279 | default: |
280 | |||
276 | /* Invalid field access type */ | 281 | /* Invalid field access type */ |
277 | 282 | ||
278 | ACPI_ERROR((AE_INFO, "Unknown field access type 0x%X", access)); | 283 | ACPI_ERROR((AE_INFO, "Unknown field access type 0x%X", access)); |
@@ -598,7 +603,9 @@ acpi_status acpi_ex_prep_field_value(struct acpi_create_field_info *info) | |||
598 | break; | 603 | break; |
599 | 604 | ||
600 | default: | 605 | default: |
606 | |||
601 | /* No other types should get here */ | 607 | /* No other types should get here */ |
608 | |||
602 | break; | 609 | break; |
603 | } | 610 | } |
604 | 611 | ||