ACPICA: debugger: add field unit support for acpi_db_get_next_token
authorErik Schmauss <erik.schmauss@intel.com>
Fri, 25 Oct 2019 21:36:57 +0000 (14:36 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Oct 2019 21:12:46 +0000 (22:12 +0100)
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>
drivers/acpi/acpica/dbinput.c

index 44d6d7246e6e539fc4850e39bc9e671c44d42e70..e1632b340182b369ecfb77946f3e863003e52581 100644 (file)
@@ -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 */