]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon/f71882fg: Make the decision wether to register fan attr. per fan
authorHans de Goede <hdegoede@redhat.com>
Fri, 9 Sep 2011 10:12:35 +0000 (12:12 +0200)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 18 Sep 2011 17:10:11 +0000 (10:10 -0700)
commit5422823211f7bef3275da4393aa6a590ceba7331
treeeff6fb9a61b179983c0788589cbaf39bbaacbf27
parenta7e19b0a4e89dcc9f6421142af1f69aeca868721
hwmon/f71882fg: Make the decision wether to register fan attr. per fan

Before this patch the f71882fg driver completely fails to initialize
on systems which have reserved settings in the pwm enable register, and
it disables all auto pwm sysfs attributes if any fan is controlled by
a digital sensor reading.

This patch changes the fail to initialize into don't register any attributes
for the fan for which there are reserved settings in the pwm enable register
and also makes the not registering of auto pwm sysfs attributes a per fan
thing.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/f71882fg.c