diff options
author | Cliff Huang <cliff.huang@intel.com> | 2023-09-07 09:39:37 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-09-14 12:03:32 +0000 |
commit | 95e4ffe848d2304045ec44bcb8f71d104104d688 (patch) | |
tree | 0da31e9135cd3a773cc9814962596596905d9985 /src/drivers/acpi | |
parent | 4c618cdd7967d258ced2680ea95a5fad9c271684 (diff) |
acpi: Comply with ACPI specification by making _STR unicode strings
_STR should return Unicode string. From ACPI spec:
6.1.10 _STR (String)
The _STR object evaluates to an Unicode string that describes the
device or thermal zone.
BUG=NA
TEST=Check the changed _STR in SSDT to see if Unicode() macro is used
Signed-off-by: Cliff Huang <cliff.huang@intel.com>
Change-Id: I1f4b55a268c1dadbae456afe5821ae161b8e15a5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77695
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Diffstat (limited to 'src/drivers/acpi')
-rw-r--r-- | src/drivers/acpi/thermal_zone/thermal_zone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/acpi/thermal_zone/thermal_zone.c b/src/drivers/acpi/thermal_zone/thermal_zone.c index 1a52997607..192e2e6599 100644 --- a/src/drivers/acpi/thermal_zone/thermal_zone.c +++ b/src/drivers/acpi/thermal_zone/thermal_zone.c @@ -61,7 +61,7 @@ static void thermal_zone_fill_ssdt(const struct device *dev) acpigen_write_thermal_zone(name); if (config->description) - acpigen_write_name_string("_STR", config->description); + acpigen_write_name_unicode("_STR", config->description); if (config->polling_period) acpigen_write_name_integer( |