acpi: add build_append_namestring() helper
commiteae8bded9a1a19561054654f5113aeb978d7b4c1
authorIgor Mammedov <imammedo@redhat.com>
Fri, 30 Jan 2015 13:29:37 +0000 (30 13:29 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 26 Feb 2015 11:42:15 +0000 (26 12:42 +0100)
treed9239bca02c88ed57f250deb4857fa8aeeb041df
parent19934e0e3d0f70eefe8d9e51e71c1cb80f4659d0
acpi: add build_append_namestring() helper

Use build_append_namestring() instead of build_append_nameseg()
So user won't have to care whether name is NameSeg, NamePath or
NameString.

See for reference ACPI 5.0: 20.2.2 Name Objects Encoding

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/aml-build.c
hw/i386/acpi-build.c
include/hw/acpi/aml-build.h