]> 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, 5 Oct 2011 03:26:04 +0000 (20:26 -0700)
commit29a8e513f5664c4d0e154fe03c8dbe1786f9ae18
tree21688646e58ef877045db7fec506f03a39bb5205
parent3e2e1f8bcf06028bad4ef59e2fb3171a41a6d6a3
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