summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2011-03-27 22:47:51 -0400
committerNicolas Pitre <nicolas.pitre@linaro.org>2011-03-27 22:47:51 -0400
commit0e9882b4fb8703f13921279fe4a6592574f92c62 (patch)
tree001ea9826ec3011e19986eb81cc7597d58f4f999 /drivers/hwmon
parentc4bb07ec0084e26323047bcbe446d59ac352e07f (diff)
parent24d6a9d07f7da6c635530688a43086ea293bf9dc (diff)
Merge commit 'v2.6.38.1' into linaro-2.6.38
Conflicts: drivers/usb/core/hcd-pci.c drivers/usb/host/isp1760-hcd.c include/linux/usb/ch9.h
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/sht15.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c
index a610e7880fb..38a41d27f3d 100644
--- a/drivers/hwmon/sht15.c
+++ b/drivers/hwmon/sht15.c
@@ -333,11 +333,11 @@ static inline int sht15_calc_humid(struct sht15_data *data)
const int c1 = -4;
const int c2 = 40500; /* x 10 ^ -6 */
- const int c3 = -2800; /* x10 ^ -9 */
+ const int c3 = -28; /* x 10 ^ -7 */
RHlinear = c1*1000
+ c2 * data->val_humid/1000
- + (data->val_humid * data->val_humid * c3)/1000000;
+ + (data->val_humid * data->val_humid * c3) / 10000;
return (temp - 25000) * (10000 + 80 * data->val_humid)
/ 1000000 + RHlinear;
}