Skip to content

Commit

Permalink
hwmon: submitting-patches: Point to with_info API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guenter Roeck committed Sep 13, 2019
1 parent 3b710d7 commit 9b0cffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/hwmon/submitting-patches.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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().

Expand Down

0 comments on commit 9b0cffa

Please sign in to comment.