hwmon: submitting-patches: Point to with_info API
authorGuenter Roeck <linux@roeck-us.net>
Fri, 13 Sep 2019 12:06:45 +0000 (05:06 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 13 Sep 2019 12:06:45 +0000 (05:06 -0700)
New driver should use devm_hwmon_device_register_with_info() or
hwmon_device_register_with_info() to register with the hwmon subsystem.

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

index 452fc28d8e0bb3f7efefc6f20c5a0786ae72b22e..6b73dba32b89f29a686a818c0ebfb7330393a0a3 100644 (file)
@@ -120,8 +120,8 @@ increase the chances of your change being accepted.
   completely initialize your chip and your driver first, then register with
   the hwmon subsystem.
 
-* Use devm_hwmon_device_register_with_groups() or, if your driver needs a remove
-  function, hwmon_device_register_with_groups() to register your driver with the
+* 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().