diff options
-rw-r--r-- | src/acpi/acpigen_dptf.c | 2 | ||||
-rw-r--r-- | src/drivers/acpi/thermal_zone/thermal_zone.c | 2 | ||||
-rw-r--r-- | src/drivers/intel/dptf/dptf.c | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/acpi/acpigen_dptf.c b/src/acpi/acpigen_dptf.c index d1a79d18e2..aa8de1e8d2 100644 --- a/src/acpi/acpigen_dptf.c +++ b/src/acpi/acpigen_dptf.c @@ -488,7 +488,7 @@ void dptf_write_STR(const char *str) if (!str) return; - acpigen_write_name_string("_STR", str); + acpigen_write_name_unicode("_STR", str); } void dptf_write_fan_options(bool fine_grained, int step_size, bool low_speed_notify) 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( diff --git a/src/drivers/intel/dptf/dptf.c b/src/drivers/intel/dptf/dptf.c index f616d759e8..71a4ec340d 100644 --- a/src/drivers/intel/dptf/dptf.c +++ b/src/drivers/intel/dptf/dptf.c @@ -112,7 +112,7 @@ static void dptf_write_generic_participant(const char *name, acpigen_write_STA(sta_val); if (str) - acpigen_write_name_string("_STR", str); + acpigen_write_name_unicode("_STR", str); acpigen_write_name_integer("PTYP", ptype); @@ -143,7 +143,7 @@ static void write_fan(const struct drivers_intel_dptf_config *config, acpigen_write_name("_HID"); dptf_write_hid(platform_info->use_eisa_hids, platform_info->fan_hid); acpigen_write_name_integer("_UID", fan_uid++); - acpigen_write_name_string("_STR", DEFAULT_FAN_STR); + acpigen_write_name_unicode("_STR", DEFAULT_FAN_STR); acpigen_write_name_integer("PTYP", DPTF_GENERIC_PARTICIPANT_TYPE_FAN); acpigen_write_STA(get_STA_value(config, participant)); acpigen_pop_len(); /* Device */ @@ -329,7 +329,7 @@ static void write_create_tpch(const struct dptf_platform_info *platform_info) acpigen_write_device("TPCH"); acpigen_write_name("_HID"); dptf_write_hid(platform_info->use_eisa_hids, platform_info->tpch_device_hid); - acpigen_write_name_string("_STR", DEFAULT_TPCH_STR); + acpigen_write_name_unicode("_STR", DEFAULT_TPCH_STR); acpigen_write_name_integer("PTYP", DPTF_GENERIC_PARTICIPANT_TYPE_TPCH); acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); } @@ -402,7 +402,7 @@ static void write_create_tpwr(const struct drivers_intel_dptf_config *config, if (platform_info->tpwr_device_hid != NULL) dptf_write_hid(platform_info->use_eisa_hids, platform_info->tpwr_device_hid); acpigen_write_name_string("_UID", "TPWR"); - acpigen_write_name_string("_STR", DEFAULT_POWER_STR); + acpigen_write_name_unicode("_STR", DEFAULT_POWER_STR); acpigen_write_name_integer("PTYP", DPTF_GENERIC_PARTICIPANT_TYPE_POWER); acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); @@ -429,7 +429,7 @@ static void write_create_tbat(const struct dptf_platform_info *platform_info) if (platform_info->tbat_device_hid != NULL) dptf_write_hid(platform_info->use_eisa_hids, platform_info->tbat_device_hid); acpigen_write_name_string("_UID", "1"); - acpigen_write_name_string("_STR", DEFAULT_BATTERY_STR); + acpigen_write_name_unicode("_STR", DEFAULT_BATTERY_STR); acpigen_write_name_integer("PTYP", DPTF_GENERIC_PARTICIPANT_TYPE_BATTERY); acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); acpigen_write_device_end(); /* TBAT Battery Participant Device */ |