]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/hwmon/hwmon.c
hwmon: (core) Explain why at least two attribute groups are allocated
authorGuenter Roeck <linux@roeck-us.net>
Mon, 17 Oct 2016 00:11:52 +0000 (17:11 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 10 Dec 2016 05:54:21 +0000 (21:54 -0800)
commitb2a4cc3a060da0de17ab1e854cef89f5e74e2064
treeb6bcf8602259387d82bd09a793c725f5cbb00e18
parent239552f495b91fc8f3fba4b5094233e053d265cb
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>
drivers/hwmon/hwmon.c