diff options
author | Guenter Roeck <linux@roeck-us.net> | 2016-10-16 11:31:08 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2016-12-09 21:54:19 -0800 |
commit | af1bd36c06b5fad33baa7ee16820226efbd96cd9 (patch) | |
tree | 7e85fb0ca58a3173035da165912bdec12dda4f41 /drivers/hwmon | |
parent | f4d325d5ed099c3ca9b2c23a53dc64e871a659c8 (diff) | |
download | blackbird-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.c | 3 |
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); |