Skip to content

Commit

Permalink
ACPICA: debugger: add field unit support for acpi_db_get_next_token
Browse files Browse the repository at this point in the history
ACPICA commit d509afa88e9415f13a3283c38ce9ee034634ae24

Since field unit data output from the debugger are now surrounded by
braces '{', support has been added to acpi_db_get_next_token to recognize
strings beginning with this character as a ACPI_TYPE_FIELD_UNIT.

Link: https://github.com/acpica/acpica/commit/d509afa8
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Erik Schmauss authored and Rafael J. Wysocki committed Oct 28, 2019
1 parent 20d93fc commit 7609350
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions drivers/acpi/acpica/dbinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,21 @@ char *acpi_db_get_next_token(char *string,
}
break;

case '{':

/* This is the start of a field unit, scan until closing brace */

string++;
start = string;
type = ACPI_TYPE_FIELD_UNIT;

/* Find end of buffer */

while (*string && (*string != '}')) {
string++;
}
break;

case '[':

/* This is the start of a package, scan until closing bracket */
Expand Down

0 comments on commit 7609350

Please sign in to comment.