diff options
-rw-r--r-- | drivers/acpi/acpica/acpredef.h | 8 | ||||
-rw-r--r-- | drivers/acpi/acpica/nsprepkg.c | 40 | ||||
-rw-r--r-- | drivers/acpi/acpica/nsrepair.c | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/nsrepair2.c | 16 | ||||
-rw-r--r-- | drivers/acpi/acpica/rscalc.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/rscreate.c | 4 |
6 files changed, 37 insertions, 37 deletions
diff --git a/drivers/acpi/acpica/acpredef.h b/drivers/acpi/acpica/acpredef.h index 393826bee42d..c99bc04a5efe 100644 --- a/drivers/acpi/acpica/acpredef.h +++ b/drivers/acpi/acpica/acpredef.h | |||
@@ -50,7 +50,7 @@ | |||
50 | * | 50 | * |
51 | * Return Package types | 51 | * Return Package types |
52 | * | 52 | * |
53 | * 1) PTYPE1 packages do not contain sub-packages. | 53 | * 1) PTYPE1 packages do not contain subpackages. |
54 | * | 54 | * |
55 | * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types: | 55 | * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types: |
56 | * object type | 56 | * object type |
@@ -65,8 +65,8 @@ | |||
65 | * (Used for _PRW) | 65 | * (Used for _PRW) |
66 | * | 66 | * |
67 | * | 67 | * |
68 | * 2) PTYPE2 packages contain a Variable-length number of sub-packages. Each | 68 | * 2) PTYPE2 packages contain a Variable-length number of subpackages. Each |
69 | * of the different types describe the contents of each of the sub-packages. | 69 | * of the different types describe the contents of each of the subpackages. |
70 | * | 70 | * |
71 | * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length | 71 | * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length |
72 | * parent package is allowed: | 72 | * parent package is allowed: |
@@ -562,7 +562,7 @@ const union acpi_predefined_info acpi_gbl_predefined_methods[] = { | |||
562 | 562 | ||
563 | /* | 563 | /* |
564 | * For _HPX, a single package is returned, containing a variable-length number | 564 | * For _HPX, a single package is returned, containing a variable-length number |
565 | * of sub-packages. Each sub-package contains a PCI record setting. | 565 | * of subpackages. Each subpackage contains a PCI record setting. |
566 | * There are several different type of record settings, of different | 566 | * There are several different type of record settings, of different |
567 | * lengths, but all elements of all settings are Integers. | 567 | * lengths, but all elements of all settings are Integers. |
568 | */ | 568 | */ |
diff --git a/drivers/acpi/acpica/nsprepkg.c b/drivers/acpi/acpica/nsprepkg.c index 61faf77afc18..68f725839eb6 100644 --- a/drivers/acpi/acpica/nsprepkg.c +++ b/drivers/acpi/acpica/nsprepkg.c | |||
@@ -132,12 +132,12 @@ acpi_ns_check_package(struct acpi_evaluate_info *info, | |||
132 | * Decode the type of the expected package contents | 132 | * Decode the type of the expected package contents |
133 | * | 133 | * |
134 | * PTYPE1 packages contain no subpackages | 134 | * PTYPE1 packages contain no subpackages |
135 | * PTYPE2 packages contain sub-packages | 135 | * PTYPE2 packages contain subpackages |
136 | */ | 136 | */ |
137 | switch (package->ret_info.type) { | 137 | switch (package->ret_info.type) { |
138 | case ACPI_PTYPE1_FIXED: | 138 | case ACPI_PTYPE1_FIXED: |
139 | /* | 139 | /* |
140 | * The package count is fixed and there are no sub-packages | 140 | * The package count is fixed and there are no subpackages |
141 | * | 141 | * |
142 | * If package is too small, exit. | 142 | * If package is too small, exit. |
143 | * If package is larger than expected, issue warning but continue | 143 | * If package is larger than expected, issue warning but continue |
@@ -169,7 +169,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info, | |||
169 | 169 | ||
170 | case ACPI_PTYPE1_VAR: | 170 | case ACPI_PTYPE1_VAR: |
171 | /* | 171 | /* |
172 | * The package count is variable, there are no sub-packages, and all | 172 | * The package count is variable, there are no subpackages, and all |
173 | * elements must be of the same type | 173 | * elements must be of the same type |
174 | */ | 174 | */ |
175 | for (i = 0; i < count; i++) { | 175 | for (i = 0; i < count; i++) { |
@@ -185,7 +185,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info, | |||
185 | 185 | ||
186 | case ACPI_PTYPE1_OPTION: | 186 | case ACPI_PTYPE1_OPTION: |
187 | /* | 187 | /* |
188 | * The package count is variable, there are no sub-packages. There are | 188 | * The package count is variable, there are no subpackages. There are |
189 | * a fixed number of required elements, and a variable number of | 189 | * a fixed number of required elements, and a variable number of |
190 | * optional elements. | 190 | * optional elements. |
191 | * | 191 | * |
@@ -242,7 +242,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info, | |||
242 | elements++; | 242 | elements++; |
243 | count--; | 243 | count--; |
244 | 244 | ||
245 | /* Examine the sub-packages */ | 245 | /* Examine the subpackages */ |
246 | 246 | ||
247 | status = | 247 | status = |
248 | acpi_ns_check_package_list(info, package, elements, count); | 248 | acpi_ns_check_package_list(info, package, elements, count); |
@@ -250,7 +250,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info, | |||
250 | 250 | ||
251 | case ACPI_PTYPE2_PKG_COUNT: | 251 | case ACPI_PTYPE2_PKG_COUNT: |
252 | 252 | ||
253 | /* First element is the (Integer) count of sub-packages to follow */ | 253 | /* First element is the (Integer) count of subpackages to follow */ |
254 | 254 | ||
255 | status = acpi_ns_check_object_type(info, elements, | 255 | status = acpi_ns_check_object_type(info, elements, |
256 | ACPI_RTYPE_INTEGER, 0); | 256 | ACPI_RTYPE_INTEGER, 0); |
@@ -270,7 +270,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info, | |||
270 | count = expected_count; | 270 | count = expected_count; |
271 | elements++; | 271 | elements++; |
272 | 272 | ||
273 | /* Examine the sub-packages */ | 273 | /* Examine the subpackages */ |
274 | 274 | ||
275 | status = | 275 | status = |
276 | acpi_ns_check_package_list(info, package, elements, count); | 276 | acpi_ns_check_package_list(info, package, elements, count); |
@@ -283,9 +283,9 @@ acpi_ns_check_package(struct acpi_evaluate_info *info, | |||
283 | case ACPI_PTYPE2_FIX_VAR: | 283 | case ACPI_PTYPE2_FIX_VAR: |
284 | /* | 284 | /* |
285 | * These types all return a single Package that consists of a | 285 | * These types all return a single Package that consists of a |
286 | * variable number of sub-Packages. | 286 | * variable number of subpackages. |
287 | * | 287 | * |
288 | * First, ensure that the first element is a sub-Package. If not, | 288 | * First, ensure that the first element is a subpackage. If not, |
289 | * the BIOS may have incorrectly returned the object as a single | 289 | * the BIOS may have incorrectly returned the object as a single |
290 | * package instead of a Package of Packages (a common error if | 290 | * package instead of a Package of Packages (a common error if |
291 | * there is only one entry). We may be able to repair this by | 291 | * there is only one entry). We may be able to repair this by |
@@ -310,7 +310,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info, | |||
310 | count = 1; | 310 | count = 1; |
311 | } | 311 | } |
312 | 312 | ||
313 | /* Examine the sub-packages */ | 313 | /* Examine the subpackages */ |
314 | 314 | ||
315 | status = | 315 | status = |
316 | acpi_ns_check_package_list(info, package, elements, count); | 316 | acpi_ns_check_package_list(info, package, elements, count); |
@@ -370,9 +370,9 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info, | |||
370 | u32 j; | 370 | u32 j; |
371 | 371 | ||
372 | /* | 372 | /* |
373 | * Validate each sub-Package in the parent Package | 373 | * Validate each subpackage in the parent Package |
374 | * | 374 | * |
375 | * NOTE: assumes list of sub-packages contains no NULL elements. | 375 | * NOTE: assumes list of subpackages contains no NULL elements. |
376 | * Any NULL elements should have been removed by earlier call | 376 | * Any NULL elements should have been removed by earlier call |
377 | * to acpi_ns_remove_null_elements. | 377 | * to acpi_ns_remove_null_elements. |
378 | */ | 378 | */ |
@@ -389,7 +389,7 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info, | |||
389 | return (status); | 389 | return (status); |
390 | } | 390 | } |
391 | 391 | ||
392 | /* Examine the different types of expected sub-packages */ | 392 | /* Examine the different types of expected subpackages */ |
393 | 393 | ||
394 | info->parent_package = sub_package; | 394 | info->parent_package = sub_package; |
395 | switch (package->ret_info.type) { | 395 | switch (package->ret_info.type) { |
@@ -450,14 +450,14 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info, | |||
450 | 450 | ||
451 | case ACPI_PTYPE2_FIXED: | 451 | case ACPI_PTYPE2_FIXED: |
452 | 452 | ||
453 | /* Each sub-package has a fixed length */ | 453 | /* Each subpackage has a fixed length */ |
454 | 454 | ||
455 | expected_count = package->ret_info2.count; | 455 | expected_count = package->ret_info2.count; |
456 | if (sub_package->package.count < expected_count) { | 456 | if (sub_package->package.count < expected_count) { |
457 | goto package_too_small; | 457 | goto package_too_small; |
458 | } | 458 | } |
459 | 459 | ||
460 | /* Check the type of each sub-package element */ | 460 | /* Check the type of each subpackage element */ |
461 | 461 | ||
462 | for (j = 0; j < expected_count; j++) { | 462 | for (j = 0; j < expected_count; j++) { |
463 | status = | 463 | status = |
@@ -475,14 +475,14 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info, | |||
475 | 475 | ||
476 | case ACPI_PTYPE2_MIN: | 476 | case ACPI_PTYPE2_MIN: |
477 | 477 | ||
478 | /* Each sub-package has a variable but minimum length */ | 478 | /* Each subpackage has a variable but minimum length */ |
479 | 479 | ||
480 | expected_count = package->ret_info.count1; | 480 | expected_count = package->ret_info.count1; |
481 | if (sub_package->package.count < expected_count) { | 481 | if (sub_package->package.count < expected_count) { |
482 | goto package_too_small; | 482 | goto package_too_small; |
483 | } | 483 | } |
484 | 484 | ||
485 | /* Check the type of each sub-package element */ | 485 | /* Check the type of each subpackage element */ |
486 | 486 | ||
487 | status = | 487 | status = |
488 | acpi_ns_check_package_elements(info, sub_elements, | 488 | acpi_ns_check_package_elements(info, sub_elements, |
@@ -531,7 +531,7 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info, | |||
531 | (*sub_elements)->integer.value = expected_count; | 531 | (*sub_elements)->integer.value = expected_count; |
532 | } | 532 | } |
533 | 533 | ||
534 | /* Check the type of each sub-package element */ | 534 | /* Check the type of each subpackage element */ |
535 | 535 | ||
536 | status = | 536 | status = |
537 | acpi_ns_check_package_elements(info, | 537 | acpi_ns_check_package_elements(info, |
@@ -557,10 +557,10 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info, | |||
557 | 557 | ||
558 | package_too_small: | 558 | package_too_small: |
559 | 559 | ||
560 | /* The sub-package count was smaller than required */ | 560 | /* The subpackage count was smaller than required */ |
561 | 561 | ||
562 | ACPI_WARN_PREDEFINED((AE_INFO, info->full_pathname, info->node_flags, | 562 | ACPI_WARN_PREDEFINED((AE_INFO, info->full_pathname, info->node_flags, |
563 | "Return Sub-Package[%u] is too small - found %u elements, expected %u", | 563 | "Return SubPackage[%u] is too small - found %u elements, expected %u", |
564 | i, sub_package->package.count, expected_count)); | 564 | i, sub_package->package.count, expected_count)); |
565 | 565 | ||
566 | return (AE_AML_OPERAND_VALUE); | 566 | return (AE_AML_OPERAND_VALUE); |
diff --git a/drivers/acpi/acpica/nsrepair.c b/drivers/acpi/acpica/nsrepair.c index 21b6402e5245..7e417aa5c91e 100644 --- a/drivers/acpi/acpica/nsrepair.c +++ b/drivers/acpi/acpica/nsrepair.c | |||
@@ -465,7 +465,7 @@ acpi_ns_repair_null_element(struct acpi_evaluate_info * info, | |||
465 | * RETURN: None. | 465 | * RETURN: None. |
466 | * | 466 | * |
467 | * DESCRIPTION: Remove all NULL package elements from packages that contain | 467 | * DESCRIPTION: Remove all NULL package elements from packages that contain |
468 | * a variable number of sub-packages. For these types of | 468 | * a variable number of subpackages. For these types of |
469 | * packages, NULL elements can be safely removed. | 469 | * packages, NULL elements can be safely removed. |
470 | * | 470 | * |
471 | *****************************************************************************/ | 471 | *****************************************************************************/ |
@@ -486,7 +486,7 @@ acpi_ns_remove_null_elements(struct acpi_evaluate_info *info, | |||
486 | /* | 486 | /* |
487 | * We can safely remove all NULL elements from these package types: | 487 | * We can safely remove all NULL elements from these package types: |
488 | * PTYPE1_VAR packages contain a variable number of simple data types. | 488 | * PTYPE1_VAR packages contain a variable number of simple data types. |
489 | * PTYPE2 packages contain a variable number of sub-packages. | 489 | * PTYPE2 packages contain a variable number of subpackages. |
490 | */ | 490 | */ |
491 | switch (package_type) { | 491 | switch (package_type) { |
492 | case ACPI_PTYPE1_VAR: | 492 | case ACPI_PTYPE1_VAR: |
diff --git a/drivers/acpi/acpica/nsrepair2.c b/drivers/acpi/acpica/nsrepair2.c index 18012140de1f..b09e6bef72b8 100644 --- a/drivers/acpi/acpica/nsrepair2.c +++ b/drivers/acpi/acpica/nsrepair2.c | |||
@@ -432,8 +432,8 @@ acpi_ns_repair_CID(struct acpi_evaluate_info *info, | |||
432 | * DESCRIPTION: Repair for the _CST object: | 432 | * DESCRIPTION: Repair for the _CST object: |
433 | * 1. Sort the list ascending by C state type | 433 | * 1. Sort the list ascending by C state type |
434 | * 2. Ensure type cannot be zero | 434 | * 2. Ensure type cannot be zero |
435 | * 3. A sub-package count of zero means _CST is meaningless | 435 | * 3. A subpackage count of zero means _CST is meaningless |
436 | * 4. Count must match the number of C state sub-packages | 436 | * 4. Count must match the number of C state subpackages |
437 | * | 437 | * |
438 | *****************************************************************************/ | 438 | *****************************************************************************/ |
439 | 439 | ||
@@ -686,7 +686,7 @@ acpi_ns_repair_PSS(struct acpi_evaluate_info *info, | |||
686 | u32 i; | 686 | u32 i; |
687 | 687 | ||
688 | /* | 688 | /* |
689 | * Entries (sub-packages) in the _PSS Package must be sorted by power | 689 | * Entries (subpackages) in the _PSS Package must be sorted by power |
690 | * dissipation, in descending order. If it appears that the list is | 690 | * dissipation, in descending order. If it appears that the list is |
691 | * incorrectly sorted, sort it. We sort by cpu_frequency, since this | 691 | * incorrectly sorted, sort it. We sort by cpu_frequency, since this |
692 | * should be proportional to the power. | 692 | * should be proportional to the power. |
@@ -774,9 +774,9 @@ acpi_ns_repair_TSS(struct acpi_evaluate_info *info, | |||
774 | * | 774 | * |
775 | * PARAMETERS: info - Method execution information block | 775 | * PARAMETERS: info - Method execution information block |
776 | * return_object - Pointer to the top-level returned object | 776 | * return_object - Pointer to the top-level returned object |
777 | * start_index - Index of the first sub-package | 777 | * start_index - Index of the first subpackage |
778 | * expected_count - Minimum length of each sub-package | 778 | * expected_count - Minimum length of each subpackage |
779 | * sort_index - Sub-package entry to sort on | 779 | * sort_index - Subpackage entry to sort on |
780 | * sort_direction - Ascending or descending | 780 | * sort_direction - Ascending or descending |
781 | * sort_key_name - Name of the sort_index field | 781 | * sort_key_name - Name of the sort_index field |
782 | * | 782 | * |
@@ -812,7 +812,7 @@ acpi_ns_check_sorted_list(struct acpi_evaluate_info *info, | |||
812 | } | 812 | } |
813 | 813 | ||
814 | /* | 814 | /* |
815 | * NOTE: assumes list of sub-packages contains no NULL elements. | 815 | * NOTE: assumes list of subpackages contains no NULL elements. |
816 | * Any NULL elements should have been removed by earlier call | 816 | * Any NULL elements should have been removed by earlier call |
817 | * to acpi_ns_remove_null_elements. | 817 | * to acpi_ns_remove_null_elements. |
818 | */ | 818 | */ |
@@ -839,7 +839,7 @@ acpi_ns_check_sorted_list(struct acpi_evaluate_info *info, | |||
839 | return (AE_AML_OPERAND_TYPE); | 839 | return (AE_AML_OPERAND_TYPE); |
840 | } | 840 | } |
841 | 841 | ||
842 | /* Each sub-package must have the minimum length */ | 842 | /* Each subpackage must have the minimum length */ |
843 | 843 | ||
844 | if ((*outer_elements)->package.count < expected_count) { | 844 | if ((*outer_elements)->package.count < expected_count) { |
845 | return (AE_AML_PACKAGE_LIMIT); | 845 | return (AE_AML_PACKAGE_LIMIT); |
diff --git a/drivers/acpi/acpica/rscalc.c b/drivers/acpi/acpica/rscalc.c index ae9a9cf0f50f..689556744b03 100644 --- a/drivers/acpi/acpica/rscalc.c +++ b/drivers/acpi/acpica/rscalc.c | |||
@@ -636,7 +636,7 @@ acpi_rs_get_pci_routing_table_length(union acpi_operand_object *package_object, | |||
636 | 636 | ||
637 | for (index = 0; index < number_of_elements; index++) { | 637 | for (index = 0; index < number_of_elements; index++) { |
638 | 638 | ||
639 | /* Dereference the sub-package */ | 639 | /* Dereference the subpackage */ |
640 | 640 | ||
641 | package_element = *top_object_list; | 641 | package_element = *top_object_list; |
642 | 642 | ||
diff --git a/drivers/acpi/acpica/rscreate.c b/drivers/acpi/acpica/rscreate.c index f4cd6cad6607..75d369050657 100644 --- a/drivers/acpi/acpica/rscreate.c +++ b/drivers/acpi/acpica/rscreate.c | |||
@@ -273,7 +273,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
273 | */ | 273 | */ |
274 | user_prt->length = (sizeof(struct acpi_pci_routing_table) - 4); | 274 | user_prt->length = (sizeof(struct acpi_pci_routing_table) - 4); |
275 | 275 | ||
276 | /* Each sub-package must be of length 4 */ | 276 | /* Each subpackage must be of length 4 */ |
277 | 277 | ||
278 | if ((*top_object_list)->package.count != 4) { | 278 | if ((*top_object_list)->package.count != 4) { |
279 | ACPI_ERROR((AE_INFO, | 279 | ACPI_ERROR((AE_INFO, |
@@ -283,7 +283,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
283 | } | 283 | } |
284 | 284 | ||
285 | /* | 285 | /* |
286 | * Dereference the sub-package. | 286 | * Dereference the subpackage. |
287 | * The sub_object_list will now point to an array of the four IRQ | 287 | * The sub_object_list will now point to an array of the four IRQ |
288 | * elements: [Address, Pin, Source, source_index] | 288 | * elements: [Address, Pin, Source, source_index] |
289 | */ | 289 | */ |