Skip to content

Commit

Permalink
thermal: trip_point_temp_store() calls thermal_zone_device_update()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Eduardo Valentin committed Jan 7, 2016
1 parent 5440c40 commit ad74e46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/thermal/thermal_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad74e46

Please sign in to comment.