diff options
author | Jerome Oufella <jerome.oufella@savoirfairelinux.com> | 2010-04-14 10:14:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-04-26 10:47:54 -0400 |
commit | eeb5f3b99a8ccc55e4ae4b0511a0b05e86d0b78d (patch) | |
tree | 2a2ecdea78c645025ae1fc7877a78fa1b4f713d4 /fs/cachefiles/proc.c | |
parent | fae0017ccf08a2d2ddb5c420793f3591d8ab85cb (diff) |
hwmon: (sht15) Fix sht15_calc_temp interpolation function
commit 328a2c22abd08911e37fa66f1358f829cecd72e9 upstream.
I discovered two issues.
First the previous sht15_calc_temp() loop did not iterate through the
temppoints array since the (data->supply_uV > temppoints[i - 1].vdd)
test is always true in this direction.
Also the two-points linear interpolation function was returning biased
values due to a stray division by 1000 which shouldn't be there.
[JD: Also change the default value for d1 from 0 to something saner.]
Signed-off-by: Jerome Oufella <jerome.oufella@savoirfairelinux.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/cachefiles/proc.c')
0 files changed, 0 insertions, 0 deletions