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
..
2009-12-12 13:08:15 +01:00
2010-04-06 17:06:22 -04:00
2010-04-06 10:55:33 -04:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-09 10:05:33 -07:00
2010-04-09 11:50:29 -07:00
2010-03-30 22:02:32 +09:00
2010-02-26 13:58:08 +01:00
2010-04-08 09:46:20 +09:30
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-30 22:02:32 +09: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-30 22:02:32 +09:00
2010-03-06 11:26:32 -08:00
2010-03-30 22:02:32 +09:00
2010-04-07 11:02:23 -07:00
2010-04-07 08:38:02 -07:00
2010-04-09 11:50:01 -07:00
2010-04-05 11:37:28 +09:00
2010-04-14 16:14:07 +02:00
2010-03-30 22:02:32 +09:00
2010-04-08 07:45:36 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-04-09 11:53:06 -07: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-30 22:02:32 +09:00
2010-04-07 08:38:03 -07:00
2010-03-30 22:02:32 +09:00
2010-04-07 08:38:03 -07: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-04-05 11:37:28 +09:00
2010-04-07 08:38:03 -07:00
2010-03-30 22:02:32 +09:00
2010-04-13 03:03:16 -07:00
2010-03-30 22:02:32 +09:00
2010-04-05 11:37:28 +09: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-04-05 11:37:28 +09:00
2010-04-06 13:03:52 -07:00
2010-04-07 08:38:03 -07:00
2010-04-06 17:06:22 -04: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-30 22:02:32 +09:00
2010-04-07 08:38:05 -07:00
2010-04-09 13:43:02 +02:00
2010-03-30 22:02:32 +09:00
2010-04-09 11:50:29 -07:00
2010-04-05 11:37:28 +09: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-04-12 17:26:14 +01:00
2010-04-05 11:23:16 +09:00
2010-03-30 22:02:32 +09:00
2010-04-07 08:38:03 -07:00
2010-03-30 22:02:32 +09:00
2010-04-05 11:37:28 +09:00
2010-03-30 22:02:32 +09:00
2010-04-11 02:44:30 -07:00
2010-04-07 08:38:04 -07: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-04-06 09:56:40 -07:00
2010-03-30 22:02:32 +09:00
2010-02-15 15:38:10 +01:00
2010-03-06 11:26:28 -08:00
2010-03-08 20:21:04 +00:00