[lm-sensors] [PATCH 2/4] hwmon-f71882fg: Cleanup sysfs attr creation 2/2

Hans de Goede hdegoede at redhat.com
Thu Oct 22 12:08:58 CEST 2009


hwmon-f71882fg: Cleanup sysfs attr creation 2/2

This patch merges the f71882fg_auto_pwm_attr array into the
fxxxx_fan_attr resp. fxxxx_auto_pwm_attr array, as the f71882fg_auto_pwm_attr
array was merely extending these 2 with entries for a 4th fan, it also makes
these 2 arrays 2 dimensional so that the rest of the code can choose to
add attr for 3 or 4 fans without needing to know the nr of attr per fan.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hwmon-f71882fg-sysfs-create-cleanup2.patch
URL: <http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20091022/ab886293/attachment.ksh>


More information about the lm-sensors mailing list