mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
1c2faa2247
commit
f73cf632df
1 changed files with 511 additions and 1107 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue