hwmon: (f71882fg) Cleanup f8000 pwm handling
authorHans de Goede <hdegoede@redhat.com>
Mon, 15 Jun 2009 16:39:50 +0000 (18:39 +0200)
committerJean Delvare <khali@linux-fr.org>
Mon, 15 Jun 2009 16:39:50 +0000 (18:39 +0200)
commit3fc7838a20cdd9aab0077f355b8c44135cd4b6bd
tree8437fbfd39f0d210286988e104d3228af77d1e5f
parent2958b1ec6be1d71105d67d70de9d7d70f5e97151
hwmon: (f71882fg) Cleanup f8000 pwm handling

Currently we are using separate per model sysfs attr for the 3th pwm, because
the 3th pwm of the f8000 only has automatic mode and not manual mode. Doing
things this way was getting in the way for adding f71858fg support, so this
patch makes the pwm attr identical for all models, and instead adds a check
to store_pwm_enable() disallowing setting the 3th pwm to manual mode
on a f8000 IC.

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