Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d481616 authored by Rajkumar Manoharan's avatar Rajkumar Manoharan Committed by Kalle Valo
Browse files

ath10k: fix hwmon temperature input units



To be compliant with the hwmon interface the unit needs to be
millidegree Celsius. Fix that.

Reported-by: default avatarMatthias Kaehlcke <mka@google.com>
Signed-off-by: default avatarRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent f6eaf1e0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;