Commit f439539b authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Kalle Valo
Browse files

ath10k: thermal: match wait_for_completion_timeout return type

Return type of wait_for_completion_timeout is unsigned long not int.
An appropriately named unsigned long is added and the assignments fixed up.
Signed-off-by: default avatarNicholas Mc Guire <>
Signed-off-by: default avatarKalle Valo <>
parent 6e8d5438
......@@ -75,6 +75,7 @@ static ssize_t ath10k_thermal_show_temp(struct device *dev,
struct ath10k *ar = dev_get_drvdata(dev);
int ret, temperature;
unsigned long time_left;
......@@ -96,9 +97,9 @@ static ssize_t ath10k_thermal_show_temp(struct device *dev,
goto out;
ret = wait_for_completion_timeout(&ar->thermal.wmi_sync,
if (ret == 0) {
time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync,
if (!time_left) {
ath10k_warn(ar, "failed to synchronize thermal read\n");
goto out;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment