aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/hwmon.h
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-10-16 17:20:43 -0700
committerGuenter Roeck <linux@roeck-us.net>2016-12-09 21:54:22 -0800
commit848ba0a2f20dc121a3ef5272a24641d2bd963d8b (patch)
tree6a6c7984c087709f82bce33bd140fd90bebfcd8d /include/linux/hwmon.h
parenthwmon: (core) Explain why at least two attribute groups are allocated (diff)
downloadwireguard-linux-848ba0a2f20dc121a3ef5272a24641d2bd963d8b.tar.xz
wireguard-linux-848ba0a2f20dc121a3ef5272a24641d2bd963d8b.zip
hwmon: (core) Rename groups parameter in API to extra_groups
The 'groups' parameter of hwmon_device_register_with_info() and devm_hwmon_device_register_with_info() is only necessary if extra non-standard attributes need to be provided. Rename the parameter to extra_groups and clarify the documentation. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/hwmon.h')
-rw-r--r--include/linux/hwmon.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h
index 2588e6ee7660..78d59dba563e 100644
--- a/include/linux/hwmon.h
+++ b/include/linux/hwmon.h
@@ -377,12 +377,12 @@ struct device *
hwmon_device_register_with_info(struct device *dev,
const char *name, void *drvdata,
const struct hwmon_chip_info *info,
- const struct attribute_group **groups);
+ const struct attribute_group **extra_groups);
struct device *
devm_hwmon_device_register_with_info(struct device *dev,
- const char *name, void *drvdata,
- const struct hwmon_chip_info *info,
- const struct attribute_group **groups);
+ const char *name, void *drvdata,
+ const struct hwmon_chip_info *info,
+ const struct attribute_group **extra_groups);
void hwmon_device_unregister(struct device *dev);
void devm_hwmon_device_unregister(struct device *dev);