aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/int340x_thermal/int3400_thermal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/thermal/int340x_thermal/int3400_thermal.c b/drivers/thermal/int340x_thermal/int3400_thermal.c
index 9413c4abf0b9..fb7284153878 100644
--- a/drivers/thermal/int340x_thermal/int3400_thermal.c
+++ b/drivers/thermal/int340x_thermal/int3400_thermal.c
@@ -23,7 +23,7 @@ enum int3400_thermal_uuid {
23 INT3400_THERMAL_MAXIMUM_UUID, 23 INT3400_THERMAL_MAXIMUM_UUID,
24}; 24};
25 25
26static u8 *int3400_thermal_uuids[INT3400_THERMAL_MAXIMUM_UUID] = { 26static const char *int3400_thermal_uuids[INT3400_THERMAL_MAXIMUM_UUID] = {
27 "42A441D6-AE6A-462b-A84B-4A8CE79027D3", 27 "42A441D6-AE6A-462b-A84B-4A8CE79027D3",
28 "3A95C389-E4B8-4629-A526-C52C88626BAE", 28 "3A95C389-E4B8-4629-A526-C52C88626BAE",
29 "97C68AE7-15FA-499c-B8C9-5DA81D606E0A", 29 "97C68AE7-15FA-499c-B8C9-5DA81D606E0A",
@@ -141,10 +141,10 @@ static int int3400_thermal_get_uuids(struct int3400_thermal_priv *priv)
141 } 141 }
142 142
143 for (j = 0; j < INT3400_THERMAL_MAXIMUM_UUID; j++) { 143 for (j = 0; j < INT3400_THERMAL_MAXIMUM_UUID; j++) {
144 u8 uuid[16]; 144 guid_t guid;
145 145
146 acpi_str_to_uuid(int3400_thermal_uuids[j], uuid); 146 guid_parse(int3400_thermal_uuids[j], &guid);
147 if (!strncmp(uuid, objb->buffer.pointer, 16)) { 147 if (guid_equal(objb->buffer.pointer, &guid)) {
148 priv->uuid_bitmap |= (1 << j); 148 priv->uuid_bitmap |= (1 << j);
149 break; 149 break;
150 } 150 }