mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
hwmon: submitting-patches: Point to with_info API
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>
This commit is contained in:
parent
3b710d7ae5
commit
9b0cffa6c4
1 changed files with 2 additions and 2 deletions
|
@ -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().
|
||||
|
||||
|
|
Loading…
Reference in a new issue