commit | b2a4cc3a060da0de17ab1e854cef89f5e74e2064 | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Sun Oct 16 17:11:52 2016 -0700 |
committer | Guenter Roeck <linux@roeck-us.net> | Fri Dec 09 21:54:21 2016 -0800 |
tree | b6bcf8602259387d82bd09a793c725f5cbb00e18 | |
parent | 239552f495b91fc8f3fba4b5094233e053d265cb [diff] |
hwmon: (core) Explain why at least two attribute groups are allocated A list of sysfs attribute groups is NULL-terminated, so we always need to allocate data for at least two groups (the dynamically generated group plus the NULL pointer). Add a comment to explain the situation. Signed-off-by: Guenter Roeck <linux@roeck-us.net>