diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-07-06 16:57:23 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-10-13 19:16:27 -0400 |
commit | bab2243ce1897865e31ea6d59b0478391f51812b (patch) | |
tree | e443cded8a9e422e3bd21ecfb6b7331c9997dada /include/linux/hwmon.h | |
parent | 522928a87fb98f0d6c99a5d66d2049768be6935b (diff) |
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>
Diffstat (limited to 'include/linux/hwmon.h')
-rw-r--r-- | include/linux/hwmon.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h index b2514f70d591..6d02ff77ae1a 100644 --- a/include/linux/hwmon.h +++ b/include/linux/hwmon.h | |||
@@ -15,8 +15,13 @@ | |||
15 | #define _HWMON_H_ | 15 | #define _HWMON_H_ |
16 | 16 | ||
17 | struct device; | 17 | struct device; |
18 | struct attribute_group; | ||
18 | 19 | ||
19 | struct device *hwmon_device_register(struct device *dev); | 20 | struct device *hwmon_device_register(struct device *dev); |
21 | struct device * | ||
22 | hwmon_device_register_with_groups(struct device *dev, const char *name, | ||
23 | void *drvdata, | ||
24 | const struct attribute_group **groups); | ||
20 | 25 | ||
21 | void hwmon_device_unregister(struct device *dev); | 26 | void hwmon_device_unregister(struct device *dev); |
22 | 27 | ||