diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-09-13 08:06:45 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-09-13 08:06:45 -0400 |
commit | 9b0cffa6c46239b64c60e8c4484a41310708bcec (patch) | |
tree | 4e6e9d279963ce3c37dd358eb61c9b90b56014ad | |
parent | 3b710d7ae5d5138a0d4d876a4ea12bfbb8055efb (diff) |
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>
-rw-r--r-- | Documentation/hwmon/submitting-patches.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/hwmon/submitting-patches.rst b/Documentation/hwmon/submitting-patches.rst index 452fc28d8e0b..6b73dba32b89 100644 --- a/Documentation/hwmon/submitting-patches.rst +++ b/Documentation/hwmon/submitting-patches.rst | |||
@@ -120,8 +120,8 @@ increase the chances of your change being accepted. | |||
120 | completely initialize your chip and your driver first, then register with | 120 | completely initialize your chip and your driver first, then register with |
121 | the hwmon subsystem. | 121 | the hwmon subsystem. |
122 | 122 | ||
123 | * Use devm_hwmon_device_register_with_groups() or, if your driver needs a remove | 123 | * Use devm_hwmon_device_register_with_info() or, if your driver needs a remove |
124 | function, hwmon_device_register_with_groups() to register your driver with the | 124 | function, hwmon_device_register_with_info() to register your driver with the |
125 | hwmon subsystem. Try using devm_add_action() instead of a remove function if | 125 | hwmon subsystem. Try using devm_add_action() instead of a remove function if |
126 | possible. Do not use hwmon_device_register(). | 126 | possible. Do not use hwmon_device_register(). |
127 | 127 | ||