summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>2015-01-13 12:44:24 +0530
committerKalle Valo <kvalo@qca.qualcomm.com>2015-01-15 12:36:34 +0200
commit6d48161678dcbeb1ac1736aaf11d10c55ed9a314 (patch)
treea9dc6c292e7d2591b49a75a40719c330820c6077 /drivers/net/wireless
parentf6eaf1e063bc0cb8efbd514aaffe5a4ef575ee02 (diff)
downloadlinux-stable-6d48161678dcbeb1ac1736aaf11d10c55ed9a314.tar.gz
linux-stable-6d48161678dcbeb1ac1736aaf11d10c55ed9a314.tar.bz2
linux-stable-6d48161678dcbeb1ac1736aaf11d10c55ed9a314.zip
ath10k: fix hwmon temperature input units
To be compliant with the hwmon interface the unit needs to be millidegree Celsius. Fix that. Reported-by: Matthias Kaehlcke <mka@google.com> Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath10k/thermal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/thermal.c b/drivers/net/wireless/ath/ath10k/thermal.c
index 41cff50baa41..aede750809fe 100644
--- a/drivers/net/wireless/ath/ath10k/thermal.c
+++ b/drivers/net/wireless/ath/ath10k/thermal.c
@@ -160,7 +160,8 @@ static ssize_t ath10k_thermal_show_temp(struct device *dev,
temperature = ar->thermal.temperature;
spin_unlock_bh(&ar->data_lock);
- ret = snprintf(buf, PAGE_SIZE, "%d", temperature);
+ /* display in millidegree celcius */
+ ret = snprintf(buf, PAGE_SIZE, "%d\n", temperature * 1000);
out:
mutex_unlock(&ar->conf_mutex);
return ret;