Patch 2.6.32.33 to 2.6.32.35
/drivers/hwmon/sht15.c
blob:204050720efb256a7446080ea4594fe6add47140 -> blob:fbc997ee67d973283c37181cd38dc499159639b0
--- drivers/hwmon/sht15.c
+++ drivers/hwmon/sht15.c
@@ -332,11 +332,11 @@ static inline int sht15_calc_humid(struc
const int c1 = -4;
const int c2 = 40500; /* x 10 ^ -6 */
- const int c3 = -28; /* x 10 ^ -7 */
+ const int c3 = -2800; /* x10 ^ -9 */
RHlinear = c1*1000
+ c2 * data->val_humid/1000
- + (data->val_humid * data->val_humid * c3) / 10000;
+ + (data->val_humid * data->val_humid * c3)/1000000;
return (temp - 25000) * (10000 + 80 * data->val_humid)
/ 1000000 + RHlinear;
}