hwmon: Introduce hwmon_device_register_with_groups
authorGuenter Roeck <linux@roeck-us.net>
Sat, 6 Jul 2013 20:57:23 +0000 (13:57 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Oct 2013 23:16:27 +0000 (16:16 -0700)
commitbab2243ce1897865e31ea6d59b0478391f51812b
treee443cded8a9e422e3bd21ecfb6b7331c9997dada
parent522928a87fb98f0d6c99a5d66d2049768be6935b
hwmon: Introduce hwmon_device_register_with_groups

hwmon_device_register_with_groups() lets callers register a hwmon device
together with all sysfs attributes in a single call.

When using hwmon_device_register_with_groups(), hwmon attributes are attached
to the hwmon device directly and no longer with its parent device.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/hwmon.c
include/linux/hwmon.h