aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/hwmon.h
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-10-16 11:31:08 -0700
committerGuenter Roeck <linux@roeck-us.net>2016-12-09 21:54:19 -0800
commitaf1bd36c06b5fad33baa7ee16820226efbd96cd9 (patch)
tree7e85fb0ca58a3173035da165912bdec12dda4f41 /include/linux/hwmon.h
parenthwmon: (core) Clarify use of chip attributes (diff)
downloadwireguard-linux-af1bd36c06b5fad33baa7ee16820226efbd96cd9.tar.xz
wireguard-linux-af1bd36c06b5fad33baa7ee16820226efbd96cd9.zip
hwmon: (core) Deprecate hwmon_device_register()
Inform the user that hwmon_device_register() is deprecated, and suggest conversion to the newest API. Also remove hwmon_device_register() from the kernel API documentation. Note that hwmon_device_register() is not marked as __deprecated() since doing so might result in build errors. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/hwmon.h')
-rw-r--r--include/linux/hwmon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h
index e68334aede4c..2588e6ee7660 100644
--- a/include/linux/hwmon.h
+++ b/include/linux/hwmon.h
@@ -362,7 +362,9 @@ struct hwmon_chip_info {
const struct hwmon_channel_info **info;
};
+/* hwmon_device_register() is deprecated */
struct device *hwmon_device_register(struct device *dev);
+
struct device *
hwmon_device_register_with_groups(struct device *dev, const char *name,
void *drvdata,