From: Randy Dunlap <randy.dunlap@oracle.com>
To: Michael Trimarchi <trimarchi@gandalf.sssup.it>
Cc: len.brown@intel.com, linux-pm@lists.linux-foundation.org
Subject: Re: [RFC Add no_suspend attribute V2] Let the driver know if it's in use
Date: Fri, 24 Apr 2009 10:31:36 -0700 [thread overview]
Message-ID: <49F1F778.9050706@oracle.com> (raw)
In-Reply-To: <20090424172435.GA18448@gandalf.sssup.it>
Michael Trimarchi wrote:
>
> diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
> index 69b4ddb..baae309 100644
> --- a/drivers/base/power/main.c
> +++ b/drivers/base/power/main.c
> @@ -65,6 +65,45 @@ void device_pm_unlock(void)
> }
>
> /**
> + * device_set_no_suspend_enable - Mark the device as used by userspace
> + * application
> + */
> +void device_set_no_suspend_enable(struct device *dev, bool enable)
> +{
Small nit: "/**" means "this is kernel-doc notation", but the kernel-doc
notation is not correct, so please either (a) make it correct (preferred)
or (b) don't use "/**" there.
For (a), it should look more like:
/**
* device_set_no_suspend_enable - mark the device as used by userspace application
* @dev: the target device
* @enable: true if the device should be marked as "no_suspend"
Please correct these as needed, especially the @enable flag. It seems
a bit like a double negative, unfortunately.
Thanks.
--
~Randy
next prev parent reply other threads:[~2009-04-24 17:31 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-24 17:24 [RFC Add no_suspend attribute V2] Let the driver know if it's in use Michael Trimarchi
2009-04-24 17:31 ` Randy Dunlap [this message]
2009-04-24 17:36 ` Michael Trimarchi
2009-04-24 17:55 ` Michael Trimarchi
2009-04-24 22:55 ` Greg KH
2009-04-25 8:21 ` Michael Trimarchi
2009-04-25 9:07 ` Michael Trimarchi
2009-04-25 10:56 ` Rafael J. Wysocki
2009-04-25 12:03 ` Michael Trimarchi
2009-04-25 16:57 ` Alan Stern
2009-04-25 17:11 ` Michael Trimarchi
2009-04-25 18:33 ` Alan Stern
2009-04-30 23:42 ` Michael Trimarchi
2009-05-01 2:27 ` Alan Stern
2009-07-23 14:09 ` Michael Trimarchi
2009-07-23 14:32 ` Rafael J. Wysocki
2009-07-23 14:56 ` Alan Stern
2009-07-23 16:00 ` Michael Trimarchi
2009-07-24 15:36 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49F1F778.9050706@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=len.brown@intel.com \
--cc=linux-pm@lists.linux-foundation.org \
--cc=trimarchi@gandalf.sssup.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox