acpi: Change API called to write the name for ACPI_DP_TYPE_CHILD
commit3a96ac44e275eca84baea513bc0802f62fe83fd3
authorHarsha Priya <harshapriya.n@intel.com>
Sat, 16 Jul 2016 00:31:43 +0000 (15 17:31 -0700)
committerDuncan Laurie <dlaurie@chromium.org>
Sun, 17 Jul 2016 00:26:13 +0000 (17 02:26 +0200)
tree40d3624043fa572d34d52c73cd0b46ecec6c556c
parent6101dfbaf34224db9743f807f97bc4f61106a390
acpi: Change API called to write the name for ACPI_DP_TYPE_CHILD

The API called to write the name of the child table in the
dp entry (type ACPI_DP_TYPE_CHILD) was not including the
quotes, e.g., it was DAAD and not "DAAD". Thus, the kernel driver
did not get the right information from SSDT.

Change the API to acpigen_write_string() to fix the issue.

Signed-off-by: Harsha Priya <harshapriya.n@intel.com>
Change-Id: Id33ad29e637bf1fe6b02e8a4b0fd9e220e8984e7
Reviewed-on: https://review.coreboot.org/15724
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/arch/x86/acpi_device.c