From: Niklas Söderlund Date: Tue, 17 Apr 2018 20:57:47 +0000 (+0200) Subject: thermal: rcar_gen3_thermal: update max temperature clamp X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=270ba432003f4cdaf136f1dc736b9fe6dc9d5537;p=linux.git thermal: rcar_gen3_thermal: update max temperature clamp Change the upper limit to clamp the high temperature value to 120C when setting trip points. Signed-off-by: Niklas Söderlund Reviewed-by: Simon Horman Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c index 79c2cdb4105fc..3905ec8b26898 100644 --- a/drivers/thermal/rcar_gen3_thermal.c +++ b/drivers/thermal/rcar_gen3_thermal.c @@ -207,8 +207,8 @@ static int rcar_gen3_thermal_set_trips(void *devdata, int low, int high) { struct rcar_gen3_thermal_tsc *tsc = devdata; - low = clamp_val(low, -40000, 125000); - high = clamp_val(high, -40000, 125000); + low = clamp_val(low, -40000, 120000); + high = clamp_val(high, -40000, 120000); rcar_gen3_thermal_write(tsc, REG_GEN3_IRQTEMP1, rcar_gen3_thermal_mcelsius_to_temp(tsc, low));