diff options
author | 2010-04-14 16:14:07 +0200 | |
---|---|---|
committer | 2010-04-14 16:14:07 +0200 | |
commit | 328a2c22abd08911e37fa66f1358f829cecd72e9 (patch) | |
tree | 31f33c7b72b522eed0ab4d5da9904cc726471937 /arch | |
parent | Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 (diff) | |
download | linux-dev-328a2c22abd08911e37fa66f1358f829cecd72e9.tar.xz linux-dev-328a2c22abd08911e37fa66f1358f829cecd72e9.zip |
hwmon: (sht15) Fix sht15_calc_temp interpolation function
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>
Cc: stable@kernel.org
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions