]> git.kernelconcepts.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>
Mon, 24 Oct 2011 18:09:38 +0000 (11:09 -0700)
commit6543439f19b829f94a37e1ea277ead76e93b917f
treed3f27ab8c12de502458cc326d21d5ce7c28e762e
parent9af0794c63ab1fbced7aa6f9d918ee0f7e7c45e5
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