hwmon: (f71882fg) Sanity check f8000 pwm settings
authorHans de Goede <hdegoede@redhat.com>
Mon, 15 Jun 2009 16:39:51 +0000 (18:39 +0200)
committerJean Delvare <khali@linux-fr.org>
Mon, 15 Jun 2009 16:39:51 +0000 (18:39 +0200)
commit996cadb2bf3787adcf4e164e1b351966c9e787f6
treeee8fb6f578d80bf85f6dfd05459a5bdd88c8a6e5
parent3fc7838a20cdd9aab0077f355b8c44135cd4b6bd
hwmon: (f71882fg) Sanity check f8000 pwm settings

We depend up on the pwm_enable register (0x96) not containing any reserved
settings in various places. We were already checking to make sure there
were no reserved settings in the register for the f71862fg, this patch adds
the same checking for the f8000, while at it it also moves the code to
a more apropriate place so we don't need to check if the fan/pwm part
of the IC is enabled twice.

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