Skip to contentSkip to conversation

Documentation/hwmon: Fix description of devm_hwmon_device_unregister

PATCH Superseded YYang 4 participants 6 messages Jun 8, 2023 – Jun 9, 2023

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

YYang

author
#0 lore raw

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
index c2d1e0299d8d..6cacf7daf25c 100644
@@ -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
#1 lore raw
Quoted 7 lines · YYang

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.

Is your SoB address gmail one (sounds typo here)?

Signature · 1 line
An old man doll... just what I always wanted! - Clara
maintainer
#2 lore raw
Quoted 11 lines · Bagas Sanjaya
Quoted 7 lines · YYang

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.

Is your SoB address gmail one (sounds typo here)?

Looks like it. YYang - please resubmit with correct SoB.

Thanks,
Guenter

maintainer
#4 lore raw
In reply to YYang
Quoted 16 lines · YYang

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 +0 -0
index c2d1e0299d8d..6cacf7daf25c 100644

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

#3 lore raw
In reply to Guenter Roeck
Quoted 10 lines · Bagas Sanjaya
Quoted 9 lines · YYang
Quoted 7 lines

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.

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

#5 lore raw
In reply to Jonathan Corbet
Quoted 29 lines
Quoted 16 lines · YYang

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 +0 -0
index c2d1e0299d8d..6cacf7daf25c 100644

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.

Quoted 3 lines

Thanks,

jon

Sure, I have modfied the commit message and post the updated version. Thanks for your advice.

Thanks

Yongsheng