From: Baruch Siach Date: Thu, 14 Sep 2017 15:06:57 +0000 (+0300) Subject: thermal: armada: fix formula documentation comment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0cf3a1ac3e10a5920531e38cf2ae99fa1e4d45a2;p=linux.git thermal: armada: fix formula documentation comment The formula implementation at armada_get_temp() indicates that the sign in the formula is inverted. Cc: Ezequiel Garcia Signed-off-by: Baruch Siach Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c index ae75328945f7b..706d74798cbe0 100644 --- a/drivers/thermal/armada_thermal.c +++ b/drivers/thermal/armada_thermal.c @@ -58,7 +58,7 @@ struct armada_thermal_data { /* Test for a valid sensor value (optional) */ bool (*is_valid)(struct armada_thermal_priv *); - /* Formula coeficients: temp = (b + m * reg) / div */ + /* Formula coeficients: temp = (b - m * reg) / div */ unsigned long coef_b; unsigned long coef_m; unsigned long coef_div;