convert thermistor dev-attrs from macro-initialization to array initialization, and call device_create_file() in loop on array $ diffstat 19-therm-arrys-loop pc87360.c | 74 +++++++++++++++++++++++++++++++++++--------------------------- 1 files changed, 42 insertions(+), 32 deletions(-) Signed-off-by: Jim Cromie <jcromie at divsol.com>