hwmon: Deprecate [devm_]hwmon_device_register_with_groups
authorGuenter Roeck <linux@roeck-us.net>
Thu, 16 Feb 2023 19:34:19 +0000 (11:34 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 16 Feb 2023 19:34:19 +0000 (11:34 -0800)
commit5720a18baa4686d56d0a235e6ecbcc55f8d716d7
tree2eb0de06c5f283356d4368f1db51606a59aa92a0
parenta1ffd3c46267ee5c807acd780e15df9bb692223f
hwmon: Deprecate [devm_]hwmon_device_register_with_groups

Even though the hardware monitoring documentation already stated that new
drivers should use [devm_]devm_hwmon_device_register_with_info() to
register with the hardware monitoring subsystem, we still get submissions
for new drivers using the older APIs. There is no benefit to use those
APIs. On the contrary, using the older APIs results in substantially larger
code size. Explicitly deprecate [devm_]hwmon_device_register_with_groups()
to ensure that all new drivers use the latest API.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/submitting-patches.rst
include/linux/hwmon.h