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>
This commit is contained in:
Harsha Priya 2016-07-15 17:31:43 -07:00 committed by Duncan Laurie
parent 6101dfbaf3
commit 3a96ac44e2
1 changed files with 1 additions and 1 deletions

View File

@ -498,10 +498,10 @@ static void acpi_dp_write_value(const struct acpi_dp *prop)
acpigen_write_integer(prop->integer);
break;
case ACPI_DP_TYPE_STRING:
case ACPI_DP_TYPE_CHILD:
acpigen_write_string(prop->string);
break;
case ACPI_DP_TYPE_REFERENCE:
case ACPI_DP_TYPE_CHILD:
acpigen_emit_namestring(prop->string);
break;
case ACPI_DP_TYPE_ARRAY: