]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (f71882fg) Add support for the f71889fg (version 2)
authorHans de Goede <hdegoede@redhat.com>
Wed, 9 Dec 2009 19:36:01 +0000 (20:36 +0100)
committerJean Delvare <khali@linux-fr.org>
Wed, 9 Dec 2009 19:36:01 +0000 (20:36 +0100)
commita2b4614f8bb5afc0e5ec05acd33cc7eee45f0799
treeac73a6c61327d36518ebbe9625620de974fa878e
parent2342b92555f709a9da38e3c4674fe79a21032810
hwmon: (f71882fg) Add support for the f71889fg (version 2)

This adds support for the Fintek f71889fg to the f71882fg driver,
many thanks to Gerd v. Egidy for providing (remote) access to a
machine which such an ic.

Note that this bit of the patch:
- val = SENSORS_LIMIT(val, 0, 255);
+
+ if (data->type == f71889fg)
+ val = SENSORS_LIMIT(val, -128, 127);
+ else
+ val = SENSORS_LIMIT(val, 0, 127);

Changes behaviour for already supported models, the new behaviour is correct
as the already supported models have bit 7 of the involved registers fixed at
0, so the previous behaviour which allowed setting temp zone limits > 127
was not correct.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Documentation/hwmon/f71882fg
drivers/hwmon/Kconfig
drivers/hwmon/f71882fg.c