diff mbox series

PM / core: fix kerneldoc comment for device_pm_wait_for_dev

Message ID 20190316034841.31451-1-tiny.windzz@gmail.com (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show
Series PM / core: fix kerneldoc comment for device_pm_wait_for_dev | expand

Commit Message

Yangtao Li March 16, 2019, 3:48 a.m. UTC
Rearrange comment to make the comment style consistent, the previous
function parameters are described first.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
 drivers/base/power/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Pavel Machek March 18, 2019, 12:17 p.m. UTC | #1
On Fri 2019-03-15 23:48:41, Yangtao Li wrote:
> Rearrange comment to make the comment style consistent, the previous
> function parameters are described first.
> 
> Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>

Acked-by: Pavel Machek <pavel@ucw.cz>

> ---
>  drivers/base/power/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
> index 0cff68bd7b4b..eddb54057ed6 100644
> --- a/drivers/base/power/main.c
> +++ b/drivers/base/power/main.c
> @@ -2069,8 +2069,8 @@ EXPORT_SYMBOL_GPL(__suspend_report_result);
>  
>  /**
>   * device_pm_wait_for_dev - Wait for suspend/resume of a device to complete.
> - * @dev: Device to wait for.
>   * @subordinate: Device that needs to wait for @dev.
> + * @dev: Device to wait for.
>   */
>  int device_pm_wait_for_dev(struct device *subordinate, struct device *dev)
>  {
Rafael J. Wysocki April 10, 2019, 8:13 a.m. UTC | #2
On Monday, March 18, 2019 1:17:10 PM CEST Pavel Machek wrote:
> 
> --Qf1oXS95uex85X0R
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
> 
> On Fri 2019-03-15 23:48:41, Yangtao Li wrote:
> > Rearrange comment to make the comment style consistent, the previous
> > function parameters are described first.
> >=20
> > Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
> 
> Acked-by: Pavel Machek <pavel@ucw.cz>

Patch applied, thanks!
diff mbox series

Patch

diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 0cff68bd7b4b..eddb54057ed6 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -2069,8 +2069,8 @@  EXPORT_SYMBOL_GPL(__suspend_report_result);
 
 /**
  * device_pm_wait_for_dev - Wait for suspend/resume of a device to complete.
- * @dev: Device to wait for.
  * @subordinate: Device that needs to wait for @dev.
+ * @dev: Device to wait for.
  */
 int device_pm_wait_for_dev(struct device *subordinate, struct device *dev)
 {