Skip to contentSkip to conversation

clk: mediatek: reset: Fix device registration kernel-doc

PATCH Applied Karl Mehltretter 5 participants 5 messages Sep 10 – Sep 11

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: mediatek: reset: Fix device registration kernel-doc

The comment for mtk_register_reset_controller_with_dev() names the older helper and documents np rather than dev. The new helper takes a struct device and obtains its device node internally.

Use the actual function and parameter names and clarify that failures return negative error codes.

Fixes 761bc64003e3 ("clk: mediatek: reset: Add new register reset function with device")
Assisted-by LLM
---
 drivers/clk/mediatek/reset.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/clk/mediatek/reset.h +3 -3
index 562ffd290a22..b09cdcab0c4b 100644
@@ -60,11 +60,11 @@ struct mtk_clk_rst_data {
 };
 
 /**
- * mtk_register_reset_controller - Register mediatek clock reset controller with device
- * @np: Pointer to device.
+ * mtk_register_reset_controller_with_dev - Register a MediaTek reset controller
+ * @dev: Device used to manage the reset controller resources.
  * @desc: Constant pointer to description of clock reset.
  *
- * Return: 0 on success and errorno otherwise.
+ * Return: 0 on success, negative errno otherwise.
  */
 int mtk_register_reset_controller_with_dev(struct device *dev,
 					   const struct mtk_clk_rst_desc *desc);

base-commit: 50d05c7c76c96b90462f24debacca971d2e86713

Signature · 1 line
2.39.5 (Apple Git-154)
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Karl Mehltretter

The comment for mtk_register_reset_controller_with_dev() names the older helper and documents np rather than dev. The new helper takes a struct device and obtains its device node internally.

Use the actual function and parameter names and clarify that failures return negative error codes.

Fixes 761bc64003e3 ("clk: mediatek: reset: Add new register reset function with device")
Assisted-by LLM
Quoted 29 lines
---
 drivers/clk/mediatek/reset.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/clk/mediatek/reset.h +3 -3
index 562ffd290a22..b09cdcab0c4b 100644
@@ -60,11 +60,11 @@ struct mtk_clk_rst_data {
 };
 
 /**
- * mtk_register_reset_controller - Register mediatek clock reset controller with device
- * @np: Pointer to device.
+ * mtk_register_reset_controller_with_dev - Register a MediaTek reset controller
+ * @dev: Device used to manage the reset controller resources.
  * @desc: Constant pointer to description of clock reset.
  *
- * Return: 0 on success and errorno otherwise.
+ * Return: 0 on success, negative errno otherwise.
  */
 int mtk_register_reset_controller_with_dev(struct device *dev,
                                           const struct mtk_clk_rst_desc *desc);

base-commit: 50d05c7c76c96b90462f24debacca971d2e86713 --
2.39.5 (Apple Git-154)

Reviewed-by Matthias Brugger on v1 1/1
#2 lore raw
In reply to Karl Mehltretter
Quoted 10 lines

The comment for mtk_register_reset_controller_with_dev() names the older helper and documents np rather than dev. The new helper takes a struct device and obtains its device node internally.

Use the actual function and parameter names and clarify that failures return negative error codes.

Fixes 761bc64003e3 ("clk: mediatek: reset: Add new register reset function with device")
Assisted-by LLM
Quoted 26 lines
---
 drivers/clk/mediatek/reset.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

base-commit: 50d05c7c76c96b90462f24debacca971d2e86713

drivers/clk/mediatek/reset.h +3 -3
index 562ffd290a22..b09cdcab0c4b 100644
@@ -60,11 +60,11 @@ struct mtk_clk_rst_data {
 };
 
 /**
- * mtk_register_reset_controller - Register mediatek clock reset controller with device
- * @np: Pointer to device.
+ * mtk_register_reset_controller_with_dev - Register a MediaTek reset controller
+ * @dev: Device used to manage the reset controller resources.
  * @desc: Constant pointer to description of clock reset.
  *
- * Return: 0 on success and errorno otherwise.
+ * Return: 0 on success, negative errno otherwise.
  */
 int mtk_register_reset_controller_with_dev(struct device *dev,
 					   const struct mtk_clk_rst_desc *desc);
maintainer Reviewed-by on v1 1/1
#3 lore raw
In reply to Karl Mehltretter
Quoted 34 lines · Karl Mehltretter

The comment for mtk_register_reset_controller_with_dev() names the older helper and documents np rather than dev. The new helper takes a struct device and obtains its device node internally.

Use the actual function and parameter names and clarify that failures return negative error codes.

Fixes 761bc64003e3 ("clk: mediatek: reset: Add new register reset function with device")
Assisted-by LLM
---
  drivers/clk/mediatek/reset.h | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
drivers/clk/mediatek/reset.h +3 -3
index 562ffd290a22..b09cdcab0c4b 100644
@@ -60,11 +60,11 @@ struct mtk_clk_rst_data {
  };
 
  /**
- * mtk_register_reset_controller - Register mediatek clock reset controller with device
- * @np: Pointer to device.
+ * mtk_register_reset_controller_with_dev - Register a MediaTek reset controller
+ * @dev: Device used to manage the reset controller resources.
   * @desc: Constant pointer to description of clock reset.
   *
- * Return: 0 on success and errorno otherwise.
+ * Return: 0 on success, negative errno otherwise.
   */
  int mtk_register_reset_controller_with_dev(struct device *dev,
  					   const struct mtk_clk_rst_desc *desc);
Quoted 1 line

base-commit: 50d05c7c76c96b90462f24debacca971d2e86713

Hey, thanks for the patch!
It's almost perfect - just change the first line with:

* mtk_register_reset_controller_with_dev() - Register a MediaTek reset controller

After which,

Cheers,
Angelo

Applied
#4 lore raw
In reply to Karl Mehltretter
Quoted 1 line · Karl Mehltretter

clk: mediatek: reset: Fix device registration kernel-doc

Applied, thanks!

[1/1] clk: mediatek: reset: Fix device registration kernel-doc

      commit: 8d5fa37307ac1f0612cf17ac0ccabcc258cc1526

Best regards,

Signature · 1 line
Brian Masney <[email protected]>