thermal: armada: fix formula documentation comment
authorBaruch Siach <baruch@tkos.co.il>
Thu, 14 Sep 2017 15:06:57 +0000 (18:06 +0300)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 1 Nov 2017 02:32:13 +0000 (19:32 -0700)
The formula implementation at armada_get_temp() indicates that the sign
in the formula is inverted.

Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/armada_thermal.c

index ae75328945f7b6e1818397d71b53f2c82e8473f9..706d74798cbe022105460e8554544feba01e378a 100644 (file)
@@ -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;