]> 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>
Wed, 14 Sep 2011 11:08:00 +0000 (04:08 -0700)
commit94020534d080f28f1d4599cd34937b6550512bde
tree3431f3a4254723c68756169f86b742985b158216
parentbafa9d5e5cf59a6e601b8391e2364c263fc50fda
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