Skip to content

Commit

Permalink
ACPICA: Parser: Add constants for internal namepath function
Browse files Browse the repository at this point in the history
ACPICA commit b216e39fe85feee955d29fe0a7190dd811e181ea

Add true/false constants for the "PossibleMethodCall" parameter
for acpi_ps_get_next_namepath.

Link: https://github.com/acpica/acpica/commit/b216e39f
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 Jan 1, 2016
1 parent 8d0b5b7 commit 89438f9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion drivers/acpi/acpica/acparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ acpi_ps_get_next_simple_arg(struct acpi_parse_state *parser_state,
acpi_status
acpi_ps_get_next_namepath(struct acpi_walk_state *walk_state,
struct acpi_parse_state *parser_state,
union acpi_parse_object *arg, u8 method_call);
union acpi_parse_object *arg,
u8 possible_method_call);

/* Values for u8 above */

#define ACPI_NOT_METHOD_CALL FALSE
#define ACPI_POSSIBLE_METHOD_CALL TRUE

acpi_status
acpi_ps_get_next_arg(struct acpi_walk_state *walk_state,
Expand Down
4 changes: 2 additions & 2 deletions drivers/acpi/acpica/psargs.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ acpi_ps_get_next_arg(struct acpi_walk_state *walk_state,
status =
acpi_ps_get_next_namepath(walk_state,
parser_state, arg,
1);
ACPI_POSSIBLE_METHOD_CALL);

/*
* If the super_name arg of Unload is a method call,
Expand All @@ -836,7 +836,7 @@ acpi_ps_get_next_arg(struct acpi_walk_state *walk_state,
status =
acpi_ps_get_next_namepath(walk_state,
parser_state, arg,
0);
ACPI_NOT_METHOD_CALL);
}
} else {
/* Single complex argument, nothing returned */
Expand Down
8 changes: 4 additions & 4 deletions drivers/acpi/acpica/psloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ acpi_ps_get_arguments(struct acpi_walk_state *walk_state,

case AML_INT_NAMEPATH_OP: /* AML_NAMESTRING_ARG */

status =
acpi_ps_get_next_namepath(walk_state,
&(walk_state->parser_state), op,
1);
status = acpi_ps_get_next_namepath(walk_state,
&(walk_state->parser_state),
op,
ACPI_POSSIBLE_METHOD_CALL);
if (ACPI_FAILURE(status)) {
return_ACPI_STATUS(status);
}
Expand Down

0 comments on commit 89438f9

Please sign in to comment.