Jerome Oufella
328a2c22ab
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
2010-04-14 16:14:07 +02:00
..
2010-02-03 17:39:49 +11:00
2009-09-15 17:18:13 +02:00
2009-09-15 17:18:13 +02:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2009-12-14 21:17:27 +01:00
2010-01-25 15:00:49 +01:00
2009-12-15 08:53:25 -08:00
2009-12-14 21:17:26 +01:00
2010-03-05 22:17:25 +01:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-29 22:03:00 +02:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2009-09-15 17:18:13 +02:00
2009-12-09 20:36:01 +01:00
2010-03-30 22:02:32 +09:00
2010-03-05 22:17:26 +01:00
2010-03-05 22:17:22 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2009-09-15 17:18:13 +02:00
2009-10-29 07:39:32 -07:00
2009-09-15 17:18:11 +02:00
2009-06-15 18:39:50 +02:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-05 22:17:21 +01:00
2010-01-10 20:52:35 +01:00
2010-01-10 20:52:35 +01:00
2010-03-29 22:03:06 +02:00
2009-12-17 15:45:30 -08:00
2009-10-08 07:36:40 -07:00
2009-12-15 08:53:36 -08:00
2009-12-15 08:53:36 -08:00
2009-12-14 21:17:26 +01:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2009-12-14 21:17:26 +01:00
2007-10-09 22:56:29 -04:00
2009-12-14 21:17:26 +01:00
2010-02-05 19:58:36 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:27 +01:00
2010-03-05 22:17:15 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-10-04 22:53:42 +02:00
2009-10-04 22:53:42 +02:00
2010-03-05 22:17:26 +01:00
2010-03-30 22:02:32 +09:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2010-03-30 22:02:32 +09:00
2009-09-15 17:18:13 +02:00
2009-09-15 17:18:13 +02:00
2009-12-14 21:17:26 +01:00
2009-12-09 20:35:45 +01:00
2010-04-14 16:14:07 +02:00
2010-01-10 20:52:35 +01:00
2009-09-15 17:18:13 +02:00
2010-01-25 15:00:48 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2010-03-05 22:17:26 +01:00
2010-03-05 22:17:26 +01:00
2008-08-31 01:23:17 -07:00
2010-01-10 20:52:35 +01:00
2009-12-16 21:38:28 +01:00
2009-09-15 17:18:13 +02:00
2010-03-06 11:26:45 -08:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-12-15 08:53:35 -08:00
2009-12-16 21:38:29 +01:00
2010-02-05 19:58:36 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2010-03-29 22:03:03 +02:00
2010-03-30 22:02:32 +09:00
2009-09-17 09:46:51 +02:00