kernel-ark/drivers/hwmon
Jean Delvare d38b149794 hwmon: (lm85) Fix function RANGE_TO_REG()
Function RANGE_TO_REG() is broken. For a requested range of 2000 (2
degrees C), it will return an index value of 15, i.e. 80.0 degrees C,
instead of the expected index value of 0. All other values are handled
properly, just 2000 isn't.

The bug was introduced back in November 2004 by this patch:
http://git.kernel.org/?p=linux/kernel/git/tglx/history.git;a=commit;h=1c28d80f1992240373099d863e4996cdd5d646d0

While this can be fixed easily with the current code, I'd rather
rewrite the whole function in a way which is more obviously correct.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Justin Thiessen <jthiessen@penguincomputing.com>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
2008-06-19 06:50:31 -04:00
..
ams Merge master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2007-10-12 21:27:47 -04:00
abituguru3.c hwmon: (abituguru3) Add AUX4 fan input for Abit IP35 Pro 2008-02-07 20:39:44 -05:00
abituguru.c Merge branch 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6 2007-10-14 12:50:19 -07:00
ad7418.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm1021.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm1025.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm1026.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm1029.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm1031.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adm9240.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
ads7828.c drivers: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:53 -07:00
adt7470.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
adt7473.c hwmon: (adt7473) minor cleanup / refactoring 2008-04-27 09:23:12 -04:00
applesmc.c hwmon: (applesmc) sensors set for MacBook2 2008-02-17 15:04:14 -05:00
asb100.c hwmon: (asb100) Remove some dead code 2008-04-27 09:23:12 -04:00
atxp1.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
coretemp.c hwmon: (coretemp) Add Penryn CPU to coretemp 2008-02-17 22:08:37 -05:00
dme1737.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
ds1621.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
f71805f.c hwmon: Let the user override the detected Super-I/O device ID 2008-02-07 20:39:42 -05:00
f71882fg.c hwmon: Let the user override the detected Super-I/O device ID 2008-02-07 20:39:42 -05:00
f75375s.c i2c: Convert most new-style drivers to use module aliasing 2008-04-29 23:11:40 +02:00
fscher.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
fschmd.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
fscpos.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
gl518sm.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
gl520sm.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
hdaps.c hdaps: fix module loading on Thinkpad T61P 2008-06-06 11:29:13 -07:00
hwmon-vid.c x86: convert cpuinfo_x86 array to a per_cpu array 2007-10-19 20:35:04 +02:00
hwmon.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
i5k_amb.c i5k_amb: support Intel 5400 chipset 2008-05-24 09:56:08 -07:00
ibmaem.c ibmaem endianness annotations 2008-06-04 08:06:01 -07:00
ibmpex.c ibmpex: report temperatures in mC, not C 2008-03-19 18:53:36 -07:00
it87.c hwmon: (it87) Delete pwmN_freq files on driver removal 2008-02-07 20:39:43 -05:00
k8temp.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
Kconfig ibmaem: new driver for power/energy/temp meters in IBM System X hardware 2008-05-24 09:56:08 -07:00
lm63.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm70.c hwmon: (lm70) Convert semaphore to mutex 2007-11-08 08:42:46 -05:00
lm75.c hwmon: (lm75) Fix an incorrect comment 2008-04-27 09:23:12 -04:00
lm75.h hwmon: Allow writing of negative trigger temperatures 2007-10-09 22:56:29 -04:00
lm77.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm78.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm80.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm83.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm85.c hwmon: (lm85) Fix function RANGE_TO_REG() 2008-06-19 06:50:31 -04:00
lm87.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm90.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm92.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
lm93.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
Makefile ibmaem: new driver for power/energy/temp meters in IBM System X hardware 2008-05-24 09:56:08 -07:00
max1619.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
max6650.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
pc87360.c hwmon: Let the user override the detected Super-I/O device ID 2008-02-07 20:39:42 -05:00
pc87427.c hwmon: Let the user override the detected Super-I/O device ID 2008-02-07 20:39:42 -05:00
sis5595.c hwmon: (sis5595) Split sis5595_attributes_opt 2007-11-08 08:42:45 -05:00
smsc47b397.c Merge branch 'smsc47b397-new-id' into release 2008-05-01 07:33:17 -04:00
smsc47m1.c hwmon: (smsc47m1) Add individual alarm files 2008-02-17 09:27:18 -05:00
smsc47m192.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
thmc50.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
via686a.c hwmon: (via686a) Add individual alarm files 2008-02-17 09:27:18 -05:00
vt1211.c hwmon: Let the user override the detected Super-I/O device ID 2008-02-07 20:39:42 -05:00
vt8231.c hwmon: (vt8231) Update maintainer email address 2008-02-17 09:27:19 -05:00
w83l785ts.c hwmon: (w83l785ts) Don't ask the user to report failures 2008-04-27 09:23:11 -04:00
w83l786ng.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
w83627ehf.c hwmon: (w83627ehf) The W83627DHG has 8 VID pins 2008-02-07 20:39:45 -05:00
w83627hf.c hwmon: (w83627hf) Refactor beep enable handling 2008-02-07 20:39:45 -05:00
w83781d.c hwmon: (w83781d) Fix I/O resource conflict with PNP 2008-03-27 08:40:41 -04:00
w83791d.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
w83792d.c hwmon: normal_i2c arrays should be const 2008-02-18 21:58:15 -05:00
w83793.c hwmon: (w83793) VID and VRM handling cleanups 2008-04-27 09:23:12 -04:00