diff options
author | Baruch Siach <baruch@tkos.co.il> | 2017-09-14 11:06:57 -0400 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2017-10-31 22:32:13 -0400 |
commit | 0cf3a1ac3e10a5920531e38cf2ae99fa1e4d45a2 (patch) | |
tree | 5ff1ef434ca8bace3e8e5b2f000d017279333037 | |
parent | 1fba81cc09bd3cd71ca43cd66ca7223217eaa054 (diff) |
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 <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
-rw-r--r-- | drivers/thermal/armada_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c index ae75328945f7..706d74798cbe 100644 --- a/drivers/thermal/armada_thermal.c +++ b/drivers/thermal/armada_thermal.c | |||
@@ -58,7 +58,7 @@ struct armada_thermal_data { | |||
58 | /* Test for a valid sensor value (optional) */ | 58 | /* Test for a valid sensor value (optional) */ |
59 | bool (*is_valid)(struct armada_thermal_priv *); | 59 | bool (*is_valid)(struct armada_thermal_priv *); |
60 | 60 | ||
61 | /* Formula coeficients: temp = (b + m * reg) / div */ | 61 | /* Formula coeficients: temp = (b - m * reg) / div */ |
62 | unsigned long coef_b; | 62 | unsigned long coef_b; |
63 | unsigned long coef_m; | 63 | unsigned long coef_m; |
64 | unsigned long coef_div; | 64 | unsigned long coef_div; |