Browse Source

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>
Guenter Roeck 12 years ago
parent
commit
f73cf632df
1 changed files with 296 additions and 752 deletions
  1. 296 752
      drivers/hwmon/nct6775.c

File diff suppressed because it is too large
+ 296 - 752
drivers/hwmon/nct6775.c


Some files were not shown because too many files changed in this diff