mirror of https://gitee.com/openkylin/linux.git
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