diff options
author | Piotr Maziarz <piotrx.maziarz@linux.intel.com> | 2021-12-16 16:30:17 +0100 |
---|---|---|
committer | Piotr Maziarz <piotrx.maziarz@linux.intel.com> | 2022-01-13 19:27:53 +0100 |
commit | 339f99538713c4e7c9676fa9f59e9235b973e037 (patch) | |
tree | 16058ecfa9d38a1154b1d69ebbff17b141246c36 | |
parent | 68c7e542075319d57129467872fcbe98906f2b2c (diff) | |
download | acpica-339f99538713c4e7c9676fa9f59e9235b973e037.tar.gz |
iASL: NHLT: Use UINT8 buffer for Capabilities
Using FormatSubtable works properly, but using proper type increases
readibility.
-rw-r--r-- | source/common/dmtbdump2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/common/dmtbdump2.c b/source/common/dmtbdump2.c index 9f9fa0f73..b7f619fe6 100644 --- a/source/common/dmtbdump2.c +++ b/source/common/dmtbdump2.c @@ -1757,13 +1757,12 @@ AcpiDmDumpNhlt ( if (CapabilitiesSize > 0) { - FormatSubtable = ACPI_ADD_PTR (ACPI_NHLT_FORMAT_CONFIG, Table, Offset); + UINT8* Capabilities = ACPI_ADD_PTR (UINT8, Table, Offset); /* Do the Capabilities array (of bytes) */ AcpiOsPrintf ("\n /* Specific_Config table #%u */\n", j+1); - FormatSubtable = ACPI_ADD_PTR (ACPI_NHLT_FORMAT_CONFIG, Table, Offset); - Status = AcpiDmDumpTable (TableLength, Offset, FormatSubtable, + Status = AcpiDmDumpTable (TableLength, Offset, Capabilities, CapabilitiesSize, AcpiDmTableInfoNhlt3a); if (ACPI_FAILURE (Status)) { |