Skip to content

Commit

Permalink
ACPICA: Comment update - no functional change.
Browse files Browse the repository at this point in the history
Change all instances of "sub-package" to "subpackage" for consistency.

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>
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Mar 18, 2014
1 parent 69e6bb6 commit 0a16d12
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 37 deletions.
8 changes: 4 additions & 4 deletions drivers/acpi/acpica/acpredef.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
*
* Return Package types
*
* 1) PTYPE1 packages do not contain sub-packages.
* 1) PTYPE1 packages do not contain subpackages.
*
* ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types:
* object type
Expand All @@ -65,8 +65,8 @@
* (Used for _PRW)
*
*
* 2) PTYPE2 packages contain a Variable-length number of sub-packages. Each
* of the different types describe the contents of each of the sub-packages.
* 2) PTYPE2 packages contain a Variable-length number of subpackages. Each
* of the different types describe the contents of each of the subpackages.
*
* ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length
* parent package is allowed:
Expand Down Expand Up @@ -562,7 +562,7 @@ const union acpi_predefined_info acpi_gbl_predefined_methods[] = {

/*
* For _HPX, a single package is returned, containing a variable-length number
* of sub-packages. Each sub-package contains a PCI record setting.
* of subpackages. Each subpackage contains a PCI record setting.
* There are several different type of record settings, of different
* lengths, but all elements of all settings are Integers.
*/
Expand Down
40 changes: 20 additions & 20 deletions drivers/acpi/acpica/nsprepkg.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ acpi_ns_check_package(struct acpi_evaluate_info *info,
* Decode the type of the expected package contents
*
* PTYPE1 packages contain no subpackages
* PTYPE2 packages contain sub-packages
* PTYPE2 packages contain subpackages
*/
switch (package->ret_info.type) {
case ACPI_PTYPE1_FIXED:
/*
* The package count is fixed and there are no sub-packages
* The package count is fixed and there are no subpackages
*
* If package is too small, exit.
* If package is larger than expected, issue warning but continue
Expand Down Expand Up @@ -169,7 +169,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info,

case ACPI_PTYPE1_VAR:
/*
* The package count is variable, there are no sub-packages, and all
* The package count is variable, there are no subpackages, and all
* elements must be of the same type
*/
for (i = 0; i < count; i++) {
Expand All @@ -185,7 +185,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info,

case ACPI_PTYPE1_OPTION:
/*
* The package count is variable, there are no sub-packages. There are
* The package count is variable, there are no subpackages. There are
* a fixed number of required elements, and a variable number of
* optional elements.
*
Expand Down Expand Up @@ -242,15 +242,15 @@ acpi_ns_check_package(struct acpi_evaluate_info *info,
elements++;
count--;

/* Examine the sub-packages */
/* Examine the subpackages */

status =
acpi_ns_check_package_list(info, package, elements, count);
break;

case ACPI_PTYPE2_PKG_COUNT:

/* First element is the (Integer) count of sub-packages to follow */
/* First element is the (Integer) count of subpackages to follow */

status = acpi_ns_check_object_type(info, elements,
ACPI_RTYPE_INTEGER, 0);
Expand All @@ -270,7 +270,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info,
count = expected_count;
elements++;

/* Examine the sub-packages */
/* Examine the subpackages */

status =
acpi_ns_check_package_list(info, package, elements, count);
Expand All @@ -283,9 +283,9 @@ acpi_ns_check_package(struct acpi_evaluate_info *info,
case ACPI_PTYPE2_FIX_VAR:
/*
* These types all return a single Package that consists of a
* variable number of sub-Packages.
* variable number of subpackages.
*
* First, ensure that the first element is a sub-Package. If not,
* First, ensure that the first element is a subpackage. If not,
* the BIOS may have incorrectly returned the object as a single
* package instead of a Package of Packages (a common error if
* there is only one entry). We may be able to repair this by
Expand All @@ -310,7 +310,7 @@ acpi_ns_check_package(struct acpi_evaluate_info *info,
count = 1;
}

/* Examine the sub-packages */
/* Examine the subpackages */

status =
acpi_ns_check_package_list(info, package, elements, count);
Expand Down Expand Up @@ -370,9 +370,9 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info,
u32 j;

/*
* Validate each sub-Package in the parent Package
* Validate each subpackage in the parent Package
*
* NOTE: assumes list of sub-packages contains no NULL elements.
* NOTE: assumes list of subpackages contains no NULL elements.
* Any NULL elements should have been removed by earlier call
* to acpi_ns_remove_null_elements.
*/
Expand All @@ -389,7 +389,7 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info,
return (status);
}

/* Examine the different types of expected sub-packages */
/* Examine the different types of expected subpackages */

info->parent_package = sub_package;
switch (package->ret_info.type) {
Expand Down Expand Up @@ -450,14 +450,14 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info,

case ACPI_PTYPE2_FIXED:

/* Each sub-package has a fixed length */
/* Each subpackage has a fixed length */

expected_count = package->ret_info2.count;
if (sub_package->package.count < expected_count) {
goto package_too_small;
}

/* Check the type of each sub-package element */
/* Check the type of each subpackage element */

for (j = 0; j < expected_count; j++) {
status =
Expand All @@ -475,14 +475,14 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info,

case ACPI_PTYPE2_MIN:

/* Each sub-package has a variable but minimum length */
/* Each subpackage has a variable but minimum length */

expected_count = package->ret_info.count1;
if (sub_package->package.count < expected_count) {
goto package_too_small;
}

/* Check the type of each sub-package element */
/* Check the type of each subpackage element */

status =
acpi_ns_check_package_elements(info, sub_elements,
Expand Down Expand Up @@ -531,7 +531,7 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info,
(*sub_elements)->integer.value = expected_count;
}

/* Check the type of each sub-package element */
/* Check the type of each subpackage element */

status =
acpi_ns_check_package_elements(info,
Expand All @@ -557,10 +557,10 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info,

package_too_small:

/* The sub-package count was smaller than required */
/* The subpackage count was smaller than required */

ACPI_WARN_PREDEFINED((AE_INFO, info->full_pathname, info->node_flags,
"Return Sub-Package[%u] is too small - found %u elements, expected %u",
"Return SubPackage[%u] is too small - found %u elements, expected %u",
i, sub_package->package.count, expected_count));

return (AE_AML_OPERAND_VALUE);
Expand Down
4 changes: 2 additions & 2 deletions drivers/acpi/acpica/nsrepair.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ acpi_ns_repair_null_element(struct acpi_evaluate_info * info,
* RETURN: None.
*
* DESCRIPTION: Remove all NULL package elements from packages that contain
* a variable number of sub-packages. For these types of
* a variable number of subpackages. For these types of
* packages, NULL elements can be safely removed.
*
*****************************************************************************/
Expand All @@ -486,7 +486,7 @@ acpi_ns_remove_null_elements(struct acpi_evaluate_info *info,
/*
* We can safely remove all NULL elements from these package types:
* PTYPE1_VAR packages contain a variable number of simple data types.
* PTYPE2 packages contain a variable number of sub-packages.
* PTYPE2 packages contain a variable number of subpackages.
*/
switch (package_type) {
case ACPI_PTYPE1_VAR:
Expand Down
16 changes: 8 additions & 8 deletions drivers/acpi/acpica/nsrepair2.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ acpi_ns_repair_CID(struct acpi_evaluate_info *info,
* DESCRIPTION: Repair for the _CST object:
* 1. Sort the list ascending by C state type
* 2. Ensure type cannot be zero
* 3. A sub-package count of zero means _CST is meaningless
* 4. Count must match the number of C state sub-packages
* 3. A subpackage count of zero means _CST is meaningless
* 4. Count must match the number of C state subpackages
*
*****************************************************************************/

Expand Down Expand Up @@ -686,7 +686,7 @@ acpi_ns_repair_PSS(struct acpi_evaluate_info *info,
u32 i;

/*
* Entries (sub-packages) in the _PSS Package must be sorted by power
* Entries (subpackages) in the _PSS Package must be sorted by power
* dissipation, in descending order. If it appears that the list is
* incorrectly sorted, sort it. We sort by cpu_frequency, since this
* should be proportional to the power.
Expand Down Expand Up @@ -774,9 +774,9 @@ acpi_ns_repair_TSS(struct acpi_evaluate_info *info,
*
* PARAMETERS: info - Method execution information block
* return_object - Pointer to the top-level returned object
* start_index - Index of the first sub-package
* expected_count - Minimum length of each sub-package
* sort_index - Sub-package entry to sort on
* start_index - Index of the first subpackage
* expected_count - Minimum length of each subpackage
* sort_index - Subpackage entry to sort on
* sort_direction - Ascending or descending
* sort_key_name - Name of the sort_index field
*
Expand Down Expand Up @@ -812,7 +812,7 @@ acpi_ns_check_sorted_list(struct acpi_evaluate_info *info,
}

/*
* NOTE: assumes list of sub-packages contains no NULL elements.
* NOTE: assumes list of subpackages contains no NULL elements.
* Any NULL elements should have been removed by earlier call
* to acpi_ns_remove_null_elements.
*/
Expand All @@ -839,7 +839,7 @@ acpi_ns_check_sorted_list(struct acpi_evaluate_info *info,
return (AE_AML_OPERAND_TYPE);
}

/* Each sub-package must have the minimum length */
/* Each subpackage must have the minimum length */

if ((*outer_elements)->package.count < expected_count) {
return (AE_AML_PACKAGE_LIMIT);
Expand Down
2 changes: 1 addition & 1 deletion drivers/acpi/acpica/rscalc.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ acpi_rs_get_pci_routing_table_length(union acpi_operand_object *package_object,

for (index = 0; index < number_of_elements; index++) {

/* Dereference the sub-package */
/* Dereference the subpackage */

package_element = *top_object_list;

Expand Down
4 changes: 2 additions & 2 deletions drivers/acpi/acpica/rscreate.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object,
*/
user_prt->length = (sizeof(struct acpi_pci_routing_table) - 4);

/* Each sub-package must be of length 4 */
/* Each subpackage must be of length 4 */

if ((*top_object_list)->package.count != 4) {
ACPI_ERROR((AE_INFO,
Expand All @@ -283,7 +283,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object,
}

/*
* Dereference the sub-package.
* Dereference the subpackage.
* The sub_object_list will now point to an array of the four IRQ
* elements: [Address, Pin, Source, source_index]
*/
Expand Down

0 comments on commit 0a16d12

Please sign in to comment.