提交 9b0cffa6 编写于 作者: G Guenter Roeck

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: NGuenter Roeck <linux@roeck-us.net>
上级 3b710d7a
...@@ -120,8 +120,8 @@ increase the chances of your change being accepted. ...@@ -120,8 +120,8 @@ increase the chances of your change being accepted.
completely initialize your chip and your driver first, then register with completely initialize your chip and your driver first, then register with
the hwmon subsystem. the hwmon subsystem.
* Use devm_hwmon_device_register_with_groups() or, if your driver needs a remove * Use devm_hwmon_device_register_with_info() or, if your driver needs a remove
function, hwmon_device_register_with_groups() to register your driver with the 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 hwmon subsystem. Try using devm_add_action() instead of a remove function if
possible. Do not use hwmon_device_register(). possible. Do not use hwmon_device_register().
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册