]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (f71882fg) Cleanup sysfs attr creation 2/2
authorHans de Goede <hdegoede@redhat.com>
Wed, 9 Dec 2009 19:36:00 +0000 (20:36 +0100)
committerJean Delvare <khali@linux-fr.org>
Wed, 9 Dec 2009 19:36:00 +0000 (20:36 +0100)
commit431e3db63ce0494f9b9fd4ba59a4125ec10c3d36
tree6910b304d59f8b113c8c4bc8306155f642dec54c
parentb7b50a942c8fcdeb50747b4beff31ff811e80141
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@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/f71882fg.c