convert fan & pwm dev-attrs from macro-initialization to array initialization, and call device_create_file() in loop on array. theyre done together cuz they fit together in a single loop [jimc at harpo pset]$ diffstat 17-fan-pwm-arrys-loop pc87360.c | 100 ++++++++++++++++++++++++-------------------------------------- 1 files changed, 40 insertions(+), 60 deletions(-) Signed-off-by: Jim Cromie <jcromie at divsol.com> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 17-fan-pwm-arrys-loop Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050801/0095db7a/attachment.pl