From: Kuninori Morimoto Date: Tue, 15 Dec 2015 01:19:53 +0000 (+0000) Subject: thermal: trip_point_temp_store() calls thermal_zone_device_update() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ad74e46cb3ba9e706f91f3f71baf816d2d8e45db;p=linux-beck.git thermal: trip_point_temp_store() calls thermal_zone_device_update() trip_point_temp_store() updates trip temperature. It should call thermal_zone_device_update() immediately. Signed-off-by: Kuninori Morimoto Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index d9e525cc9c1c..768fb10eb962 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -676,8 +676,12 @@ trip_point_temp_store(struct device *dev, struct device_attribute *attr, return -EINVAL; ret = tz->ops->set_trip_temp(tz, trip, temperature); + if (ret) + return ret; - return ret ? ret : count; + thermal_zone_device_update(tz); + + return count; } static ssize_t