]> git.karo-electronics.de Git - karo-tx-linux.git/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>
Sun, 14 Jul 2013 23:25:10 +0000 (16:25 -0700)
commit914bd23768621f7834d0d0b6e3a0dbf3ac45d804
treeaf624c595bb666ac14b9b5dc9f2f298dff5978e5
parentcc58db36138600a848408606b37e67739701b6a3
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