Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141870
b: refs/heads/master
c: 03ef132
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Mar 27, 2009
1 parent cf0245a commit 3d58907
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f65563063375b05898a94ab71b52612cbe3a789b
refs/heads/master: 03ef132b7258bbea4858be4b1bd6cb6c3fdd3253
24 changes: 16 additions & 8 deletions trunk/drivers/acpi/acpica/nspredef.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ acpi_ns_check_package(char *pathname,
static acpi_status
acpi_ns_check_package_elements(char *pathname,
union acpi_operand_object **elements,
u8 type1, u32 count1, u8 type2, u32 count2);
u8 type1,
u32 count1,
u8 type2, u32 count2, u32 start_index);

static acpi_status
acpi_ns_check_object_type(char *pathname,
Expand Down Expand Up @@ -473,7 +475,7 @@ acpi_ns_check_package(char *pathname,
package->ret_info.
object_type2,
package->ret_info.
count2);
count2, 0);
if (ACPI_FAILURE(status)) {
return (status);
}
Expand Down Expand Up @@ -624,7 +626,7 @@ acpi_ns_check_package(char *pathname,
object_type2,
package->
ret_info.
count2);
count2, 0);
if (ACPI_FAILURE(status)) {
return (status);
}
Expand Down Expand Up @@ -673,7 +675,8 @@ acpi_ns_check_package(char *pathname,
object_type1,
sub_package->
package.
count, 0, 0);
count, 0, 0,
0);
if (ACPI_FAILURE(status)) {
return (status);
}
Expand Down Expand Up @@ -711,7 +714,8 @@ acpi_ns_check_package(char *pathname,
ret_info.
object_type1,
(expected_count
- 1), 0, 0);
- 1), 0, 0,
1);
if (ACPI_FAILURE(status)) {
return (status);
}
Expand Down Expand Up @@ -759,6 +763,7 @@ acpi_ns_check_package(char *pathname,
* Count1 - Count for first group
* Type2 - Object type for second group
* Count2 - Count for second group
* start_index - Start of the first group of elements
*
* RETURN: Status
*
Expand All @@ -770,7 +775,9 @@ acpi_ns_check_package(char *pathname,
static acpi_status
acpi_ns_check_package_elements(char *pathname,
union acpi_operand_object **elements,
u8 type1, u32 count1, u8 type2, u32 count2)
u8 type1,
u32 count1,
u8 type2, u32 count2, u32 start_index)
{
union acpi_operand_object **this_element = elements;
acpi_status status;
Expand All @@ -783,7 +790,7 @@ acpi_ns_check_package_elements(char *pathname,
*/
for (i = 0; i < count1; i++) {
status = acpi_ns_check_object_type(pathname, this_element,
type1, i);
type1, i + start_index);
if (ACPI_FAILURE(status)) {
return (status);
}
Expand All @@ -792,7 +799,8 @@ acpi_ns_check_package_elements(char *pathname,

for (i = 0; i < count2; i++) {
status = acpi_ns_check_object_type(pathname, this_element,
type2, (i + count1));
type2,
(i + count1 + start_index));
if (ACPI_FAILURE(status)) {
return (status);
}
Expand Down

0 comments on commit 3d58907

Please sign in to comment.