convert temp dev-attrs from macro-initialization to array initialization, and call device_create_file() in loop on array $ diffstat 18-temp-arrys-loop pc87360.c | 70 ++++++++++++++++++++++++++++++++------------------------------ 1 files changed, 37 insertions(+), 33 deletions(-) Signed-off-by: Jim Cromie <jcromie at divsol.com>