diff options
author | Guenter Roeck <linux@roeck-us.net> | 2016-10-16 21:31:08 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2016-12-10 08:54:19 +0300 |
commit | af1bd36c06b5fad33baa7ee16820226efbd96cd9 (patch) | |
tree | 7e85fb0ca58a3173035da165912bdec12dda4f41 /include/linux/hwmon.h | |
parent | f4d325d5ed099c3ca9b2c23a53dc64e871a659c8 (diff) | |
download | linux-af1bd36c06b5fad33baa7ee16820226efbd96cd9.tar.xz |
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.h | 2 |
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, |