Browse Source

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>
Baruch Siach 8 years ago
parent
commit
0cf3a1ac3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/thermal/armada_thermal.c

+ 1 - 1
drivers/thermal/armada_thermal.c

@@ -58,7 +58,7 @@ struct armada_thermal_data {
 	/* Test for a valid sensor value (optional) */
 	/* Test for a valid sensor value (optional) */
 	bool (*is_valid)(struct armada_thermal_priv *);
 	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_b;
 	unsigned long coef_m;
 	unsigned long coef_m;
 	unsigned long coef_div;
 	unsigned long coef_div;