Skip to content

Commit 7609350

Browse files
Erik Schmaussrafaeljw
authored andcommitted
ACPICA: debugger: add field unit support for acpi_db_get_next_token
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: acpica/acpica@d509afa8 Signed-off-by: Erik Schmauss <[email protected]> Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 20d93fc commit 7609350

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/acpi/acpica/dbinput.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,21 @@ char *acpi_db_get_next_token(char *string,
511511
}
512512
break;
513513

514+
case '{':
515+
516+
/* This is the start of a field unit, scan until closing brace */
517+
518+
string++;
519+
start = string;
520+
type = ACPI_TYPE_FIELD_UNIT;
521+
522+
/* Find end of buffer */
523+
524+
while (*string && (*string != '}')) {
525+
string++;
526+
}
527+
break;
528+
514529
case '[':
515530

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

0 commit comments

Comments
 (0)