]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
hwmon: (f71882fg) Cleanup fan and temp hyst functions
authorHans de Goede <hdegoede@redhat.com>
Wed, 7 Jan 2009 15:37:29 +0000 (16:37 +0100)
committerJean Delvare <khali@linux-fr.org>
Wed, 7 Jan 2009 15:37:29 +0000 (16:37 +0100)
commitbc27490f9164281b9e1768a5df8e0951541f90a1
tree286bef2b3932f9df3b153572d017c128a50683ca
parentce0bfa5ee25ddbe4072b16054e809f552bf72320
hwmon: (f71882fg) Cleanup fan and temp hyst functions

Simplify fan and temp hyst. handling by treating the registers as an array of
nibbles instead of using switch cases. Also unify the way hysts are handled
between temp and fans, the temp code was storing the actual per temp hyst
values in 4 u8's, where as the fan code was storing actual register values.

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