]> Pileus Git - ~andy/linux/commit
hwmon: (nct6775) Allocate attributes dynamically from templates
authorGuenter Roeck <linux@roeck-us.net>
Mon, 18 Mar 2013 16:22:50 +0000 (09:22 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 12 Aug 2013 05:10:38 +0000 (22:10 -0700)
commitf73cf632dfb43d6236210aa38038cc91fd053ff6
treeeed8d3ef9a61681a06568d6d73226449d72cadf2
parent1c2faa22472fedf2c420041033700c700a1dfc96
hwmon: (nct6775) Allocate attributes dynamically from templates

Static attribute allocation is large and very repetitive.
Allocate attributes and attribute groups dynamically instead.
This reduces the size of the driver source by more than 600 lines,
and object size by more than 20k (more than 30%).

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c