]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/thermal/thermal_hwmon.c
thermal: hwmon: Properly report critical temperature in sysfs
[karo-tx-linux.git] / drivers / thermal / thermal_hwmon.c
index 8c45de6a9140549a7998af43f8a89a0141ed5299..541af5946203bf08e9a2c38a269661e1df81d417 100644 (file)
@@ -98,7 +98,7 @@ temp_crit_show(struct device *dev, struct device_attribute *attr, char *buf)
        int temperature;
        int ret;
 
-       ret = tz->ops->get_trip_temp(tz, 0, &temperature);
+       ret = tz->ops->get_crit_temp(tz, &temperature);
        if (ret)
                return ret;