summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
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 /drivers/hwmon
parentf4d325d5ed099c3ca9b2c23a53dc64e871a659c8 (diff)
downloadblackbird-op-linux-af1bd36c06b5fad33baa7ee16820226efbd96cd9.tar.gz
blackbird-op-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 'drivers/hwmon')
-rw-r--r--drivers/hwmon/hwmon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c
index 112aae60f51f..971c9eb78e6a 100644
--- a/drivers/hwmon/hwmon.c
+++ b/drivers/hwmon/hwmon.c
@@ -691,6 +691,9 @@ EXPORT_SYMBOL_GPL(hwmon_device_register_with_info);
*/
struct device *hwmon_device_register(struct device *dev)
{
+ dev_warn(dev,
+ "hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().\n");
+
return hwmon_device_register_with_groups(dev, NULL, NULL, NULL);
}
EXPORT_SYMBOL_GPL(hwmon_device_register);
OpenPOWER on IntegriCloud