* [Doc] class_find_device: fix reference to argument "match"
@ 2011-08-21 10:56 Rolf Eike Beer
2011-08-21 14:46 ` [Doc] class_find_device: fix reference to argument Wanlong Gao
0 siblings, 1 reply; 5+ messages in thread
From: Rolf Eike Beer @ 2011-08-21 10:56 UTC (permalink / raw)
To: linux-kernel; +Cc: Randy Dunlap, akpm
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
---
drivers/base/class.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/base/class.c b/drivers/base/class.c
index 4f1df2e..5bd577b 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -403,7 +403,7 @@ EXPORT_SYMBOL_GPL(class_for_each_device);
*
* Note, you will need to drop the reference with put_device() after use.
*
- * @fn is allowed to do anything including calling back into class
+ * @match is allowed to do anything including calling back into class
* code. There's no locking restriction.
*/
struct device *class_find_device(struct class *class, struct device *start,
--
1.7.6
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Doc] class_find_device: fix reference to argument
2011-08-21 10:56 [Doc] class_find_device: fix reference to argument "match" Rolf Eike Beer
@ 2011-08-21 14:46 ` Wanlong Gao
2011-08-21 21:53 ` Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Wanlong Gao @ 2011-08-21 14:46 UTC (permalink / raw)
To: linux-kernel
Rolf Eike Beer <eike <at> sf-mail.de> writes:
>
> Signed-off-by: Rolf Eike Beer <eike-kernel <at> sf-tec.de>
> ---
> drivers/base/class.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> - * @fn is allowed to do anything including calling back into class
> + * @match is allowed to do anything including calling back into class
> * code. There's no locking restriction.
> */
> struct device *class_find_device(struct class *class, struct device *start,
NACK, it means the function class_find_device but not the @match.
Thanks
-Wanlong Gao
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Doc] class_find_device: fix reference to argument
2011-08-21 14:46 ` [Doc] class_find_device: fix reference to argument Wanlong Gao
@ 2011-08-21 21:53 ` Randy Dunlap
2011-08-23 0:48 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2011-08-21 21:53 UTC (permalink / raw)
To: Wanlong Gao; +Cc: linux-kernel, gregkh
On Sun, 21 Aug 2011 14:46:04 +0000 (UTC) Wanlong Gao wrote:
> Rolf Eike Beer <eike <at> sf-mail.de> writes:
>
> >
> > Signed-off-by: Rolf Eike Beer <eike-kernel <at> sf-tec.de>
> > ---
> > drivers/base/class.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
>
> > - * @fn is allowed to do anything including calling back into class
> > + * @match is allowed to do anything including calling back into class
> > * code. There's no locking restriction.
> > */
> > struct device *class_find_device(struct class *class, struct device *start,
>
> NACK, it means the function class_find_device but not the @match.
Are you sure? Looks to me like a comment that was copied from
class_for_each_device() but shouldn't have been copied.
Anyway, I'll cc: Greg to see if he knows.
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Doc] class_find_device: fix reference to argument
2011-08-21 21:53 ` Randy Dunlap
@ 2011-08-23 0:48 ` Greg KH
0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2011-08-23 0:48 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Wanlong Gao, linux-kernel
On Sun, Aug 21, 2011 at 02:53:55PM -0700, Randy Dunlap wrote:
> On Sun, 21 Aug 2011 14:46:04 +0000 (UTC) Wanlong Gao wrote:
>
> > Rolf Eike Beer <eike <at> sf-mail.de> writes:
> >
> > >
> > > Signed-off-by: Rolf Eike Beer <eike-kernel <at> sf-tec.de>
> > > ---
> > > drivers/base/class.c | 2 +-
> > > 1 files changed, 1 insertions(+), 1 deletions(-)
> > >
> >
> > > - * @fn is allowed to do anything including calling back into class
> > > + * @match is allowed to do anything including calling back into class
> > > * code. There's no locking restriction.
> > > */
> > > struct device *class_find_device(struct class *class, struct device *start,
> >
> > NACK, it means the function class_find_device but not the @match.
>
> Are you sure? Looks to me like a comment that was copied from
> class_for_each_device() but shouldn't have been copied.
>
> Anyway, I'll cc: Greg to see if he knows.
I think the above patch is probably correct, as it can reenter if
needed.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Doc] class_find_device: fix reference to argument "match"
@ 2015-09-04 18:49 Rolf Eike Beer
0 siblings, 0 replies; 5+ messages in thread
From: Rolf Eike Beer @ 2015-09-04 18:49 UTC (permalink / raw)
To: LKML; +Cc: Trivial patch monkey
There is no argument "fn".
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
---
drivers/base/class.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/class.c b/drivers/base/class.c
index 6e81088..71059e3 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -406,7 +406,7 @@ EXPORT_SYMBOL_GPL(class_for_each_device);
*
* Note, you will need to drop the reference with put_device() after use.
*
- * @fn is allowed to do anything including calling back into class
+ * @match is allowed to do anything including calling back into class
* code. There's no locking restriction.
*/
struct device *class_find_device(struct class *class, struct device *start,
--
2.5.1
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-04 18:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-21 10:56 [Doc] class_find_device: fix reference to argument "match" Rolf Eike Beer
2011-08-21 14:46 ` [Doc] class_find_device: fix reference to argument Wanlong Gao
2011-08-21 21:53 ` Randy Dunlap
2011-08-23 0:48 ` Greg KH
2015-09-04 18:49 [Doc] class_find_device: fix reference to argument "match" Rolf Eike Beer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®