mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
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: 761bc64003 ("clk: mediatek: reset: Add new register reset function with device")
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
This commit is contained in:
parent
91b1b8d437
commit
8d5fa37307
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user