Skip to content

Commit

Permalink
thermal: int340x_thermal: fix compile after the UUID API switch
Browse files Browse the repository at this point in the history
Fix the compile after the switch to the UUID API in commit f4c19ac
("thermal: int340x_thermal: Switch to use new generic UUID API").

Signed-off-by: Christoph Hellwig <hch@lst.de>
  • Loading branch information
Christoph Hellwig committed Jun 9, 2017
1 parent f4c19ac commit 87085ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/thermal/int340x_thermal/int3400_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ enum int3400_thermal_uuid {
INT3400_THERMAL_MAXIMUM_UUID,
};

static const char *int3400_thermal_uuids[INT3400_THERMAL_MAXIMUM_UUID] = {
static char *int3400_thermal_uuids[INT3400_THERMAL_MAXIMUM_UUID] = {
"42A441D6-AE6A-462b-A84B-4A8CE79027D3",
"3A95C389-E4B8-4629-A526-C52C88626BAE",
"97C68AE7-15FA-499c-B8C9-5DA81D606E0A",
Expand Down Expand Up @@ -144,7 +144,7 @@ static int int3400_thermal_get_uuids(struct int3400_thermal_priv *priv)
guid_t guid;

guid_parse(int3400_thermal_uuids[j], &guid);
if (guid_equal(objb->buffer.pointer, &guid)) {
if (guid_equal((guid_t *)objb->buffer.pointer, &guid)) {
priv->uuid_bitmap |= (1 << j);
break;
}
Expand Down

0 comments on commit 87085ff

Please sign in to comment.