diff options
author | Guenter Roeck <linux@roeck-us.net> | 2023-02-16 22:34:19 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2023-02-16 22:34:19 +0300 |
commit | 5720a18baa4686d56d0a235e6ecbcc55f8d716d7 (patch) | |
tree | 2eb0de06c5f283356d4368f1db51606a59aa92a0 /Documentation/hwmon/submitting-patches.rst | |
parent | a1ffd3c46267ee5c807acd780e15df9bb692223f (diff) | |
download | linux-5720a18baa4686d56d0a235e6ecbcc55f8d716d7.tar.xz |
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>
Diffstat (limited to 'Documentation/hwmon/submitting-patches.rst')
-rw-r--r-- | Documentation/hwmon/submitting-patches.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/hwmon/submitting-patches.rst b/Documentation/hwmon/submitting-patches.rst index d953ee763c96..6482c4f137dc 100644 --- a/Documentation/hwmon/submitting-patches.rst +++ b/Documentation/hwmon/submitting-patches.rst @@ -126,7 +126,7 @@ increase the chances of your change being accepted. * Use devm_hwmon_device_register_with_info() or, if your driver needs a remove function, hwmon_device_register_with_info() to register your driver with the hwmon subsystem. Try using devm_add_action() instead of a remove function if - possible. Do not use hwmon_device_register(). + possible. Do not use any of the deprecated registration functions. * Your driver should be buildable as module. If not, please be prepared to explain why it has to be built into the kernel. |