]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
thermal: rcar_gen3_thermal: update max temperature clamp
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 17 Apr 2018 20:57:47 +0000 (22:57 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 6 May 2018 22:58:20 +0000 (15:58 -0700)
Change the upper limit to clamp the high temperature value to 120C when
setting trip points.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rcar_gen3_thermal.c

index 79c2cdb4105fc0b859b9fb8e1b219d7f85c0e193..3905ec8b2689827c90cf1040ab2974cd9e048e53 100644 (file)
@@ -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));