Documentation/hwmon: Fix description of devm_hwmon_device_unregister
Subsystems (2)
PATCH 1/1 Documentation/hwmon: Fix description of devm_hwmon_device_unregister
From: YYang <[email protected]>
Use devm_hwmon_device_register_with_info to replace hwmon_device_register_with_info in description of devm_hwmon_device_unregister.
--- Documentation/hwmon/hwmon-kernel-api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/hwmon/hwmon-kernel-api.rst +1 -1
@@ -66,7 +66,7 @@ hwmon_device_register_with_info. devm_hwmon_device_unregister does not normally have to be called. It is only needed for error handling, and only needed if the driver probe fails after -the call to hwmon_device_register_with_info and if the automatic (device +the call to devm_hwmon_device_register_with_info and if the automatic (device managed) removal would be too late. All supported hwmon device registration functions only accept valid device
Signature · 1 line
2.37.1
Quoted 7 lines · YYang
From: YYang <[email protected]>
Use
devm_hwmon_device_register_with_infoto replacehwmon_device_register_with_infoin description ofdevm_hwmon_device_unregister.Signed-off-by YYang <[email protected]>
Is your SoB address gmail one (sounds typo here)?
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Guenter Roeck
maintainerQuoted 11 lines · Bagas Sanjaya
Quoted 7 lines · YYang
From: YYang <[email protected]>
Use
devm_hwmon_device_register_with_infoto replacehwmon_device_register_with_infoin description ofdevm_hwmon_device_unregister.Signed-off-by YYang <[email protected]>Is your SoB address gmail one (sounds typo here)?
Looks like it. YYang - please resubmit with correct SoB.
Thanks,
Guenter
Quoted 10 lines · Bagas Sanjaya
Quoted 9 lines · YYang
Quoted 7 lines
From: YYang <[email protected]>
Use
devm_hwmon_device_register_with_infoto replacehwmon_device_register_with_infoin description ofdevm_hwmon_device_unregister.Signed-off-by YYang <[email protected]>
Quoted 7 lines
Quoted 2 lines
Is your SoB address gmail one (sounds typo here)?
Looks like it. YYang - please resubmit with correct SoB.
Thanks,
Guenter
Sorry for my mistake, I fixed the misspelling. Will post the updated version.
Thanks
Yongsheng
Jonathan Corbet
maintainerQuoted 16 lines · YYang
From: YYang <[email protected]>
Use
devm_hwmon_device_register_with_infoto replacehwmon_device_register_with_infoin description ofdevm_hwmon_device_unregister.Signed-off-by YYang <[email protected]>--- Documentation/hwmon/hwmon-kernel-api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/hwmon/hwmon-kernel-api.rst +0
-0
Documentation/hwmon/hwmon-kernel-api.rst hwmon_device_register_with_info. · line 70
Quoted 6 lines
Documentation/hwmon/hwmon-kernel-api.rst +1
-1@@ -66,7 +66,7 @@ hwmon_device_register_with_info. devm_hwmon_device_unregister does not normally have to be called. It is only needed for error handling, and only needed if the driver probe fails after -the call to hwmon_device_register_with_info and if the automatic (device +the call to devm_hwmon_device_register_with_info and if the automatic (device managed) removal would be too late.
If, while you're at it, you add the trailing parentheses() to the function name, then the docs build will automatically make a cross-link to the documentation.
Thanks,
jon
Quoted 29 lines
Quoted 16 lines · YYang
From: YYang <[email protected]>
Use
devm_hwmon_device_register_with_infoto replacehwmon_device_register_with_infoin description ofdevm_hwmon_device_unregister.Signed-off-by YYang <[email protected]>--- Documentation/hwmon/hwmon-kernel-api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/hwmon/hwmon-kernel-api.rst +0
-0Documentation/hwmon/hwmon-kernel-api.rst hwmon_device_register_with_info. · line 70
Quoted 6 lines
Documentation/hwmon/hwmon-kernel-api.rst +1
-1@@ -66,7 +66,7 @@ hwmon_device_register_with_info. devm_hwmon_device_unregister does not normally have to be called. It is only needed for error handling, and only needed if the driver probe fails after -the call to hwmon_device_register_with_info and if the automatic (device +the call to devm_hwmon_device_register_with_info and if the automatic (device managed) removal would be too late.If, while you're at it, you add the trailing
parentheses()to the function name, then the docs build will automatically make a cross-link to the documentation.
Quoted 3 lines
Thanks,
jon
Sure, I have modfied the commit message and post the updated version. Thanks for your advice.
Thanks
Yongsheng