Commit 176a16fa authored by Randy Dunlap's avatar Randy Dunlap Committed by Tony Lindgren

ARM: OMAP2+: hwmod: fix kernel-doc warnings

Use the correct function name in a kernel-doc comment.
Use the correct function parameter names in kernel-doc comments.
These changes prevent the following warnings:

omap_hwmod.c:910: warning: expecting prototype for _init_opt_clk(). Prototype was for _init_opt_clks() instead
omap_hwmod.c:2311: warning: Excess function parameter 'n' description in '_init'
omap_hwmod.c:2510: warning: Excess function parameter 'n' description in '_setup'
omap_hwmod.c:3387: warning: Excess function parameter 'clockdomain' description in 'omap_hwmod_allocate_module'
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: "Benoît Cousson" <bcousson@baylibre.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
Cc: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Cc: patches@armlinux.org.uk
Message-ID: <20240117011004.22669-8-rdunlap@infradead.org>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 73c0ec86
...@@ -900,7 +900,7 @@ static int _init_interface_clks(struct omap_hwmod *oh) ...@@ -900,7 +900,7 @@ static int _init_interface_clks(struct omap_hwmod *oh)
} }
/** /**
* _init_opt_clk - get a struct clk * for the hwmod's optional clocks * _init_opt_clks - get a struct clk * for the hwmod's optional clocks
* @oh: struct omap_hwmod * * @oh: struct omap_hwmod *
* *
* Called from _init_clocks(). Populates the @oh omap_hwmod_opt_clk * Called from _init_clocks(). Populates the @oh omap_hwmod_opt_clk
...@@ -2297,7 +2297,7 @@ static void __init parse_module_flags(struct omap_hwmod *oh, ...@@ -2297,7 +2297,7 @@ static void __init parse_module_flags(struct omap_hwmod *oh,
/** /**
* _init - initialize internal data for the hwmod @oh * _init - initialize internal data for the hwmod @oh
* @oh: struct omap_hwmod * * @oh: struct omap_hwmod *
* @n: (unused) * @data: (unused)
* *
* Look up the clocks and the address space used by the MPU to access * Look up the clocks and the address space used by the MPU to access
* registers belonging to the hwmod @oh. @oh must already be * registers belonging to the hwmod @oh. @oh must already be
...@@ -2493,7 +2493,7 @@ static void _setup_postsetup(struct omap_hwmod *oh) ...@@ -2493,7 +2493,7 @@ static void _setup_postsetup(struct omap_hwmod *oh)
/** /**
* _setup - prepare IP block hardware for use * _setup - prepare IP block hardware for use
* @oh: struct omap_hwmod * * @oh: struct omap_hwmod *
* @n: (unused, pass NULL) * @data: (unused, pass NULL)
* *
* Configure the IP block represented by @oh. This may include * Configure the IP block represented by @oh. This may include
* enabling the IP block, resetting it, and placing it into a * enabling the IP block, resetting it, and placing it into a
...@@ -3367,8 +3367,9 @@ static int omap_hwmod_check_module(struct device *dev, ...@@ -3367,8 +3367,9 @@ static int omap_hwmod_check_module(struct device *dev,
* omap_hwmod_allocate_module - allocate new module * omap_hwmod_allocate_module - allocate new module
* @dev: struct device * @dev: struct device
* @oh: module * @oh: module
* @data: module data
* @sysc_fields: sysc register bits * @sysc_fields: sysc register bits
* @clockdomain: clockdomain * @clkdm: clockdomain
* @rev_offs: revision register offset * @rev_offs: revision register offset
* @sysc_offs: sysconfig register offset * @sysc_offs: sysconfig register offset
* @syss_offs: sysstatus register offset * @syss_offs: sysstatus register offset
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment