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 <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
This commit is contained in:
Kuninori Morimoto 2015-12-15 01:19:53 +00:00 committed by Eduardo Valentin
parent 5440c40b90
commit ad74e46cb3
1 changed files with 5 additions and 1 deletions

View File

@ -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