From: Andrew Morton <akpm@linux-foundation.org>
To: Dmitry Baryshkov <dbaryshkov@gmail.com>
Cc: linux-kernel@vger.kernel.org, gregkh@suse.de
Subject: Re: [PATCH] platform: add new device registration helper
Date: Fri, 5 Sep 2008 11:09:37 -0700 [thread overview]
Message-ID: <20080905110937.c1a3d3f1.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080905103318.GB25622@doriath.ww600.siemens.net>
On Fri, 5 Sep 2008 14:33:18 +0400 Dmitry Baryshkov <dbaryshkov@gmail.com> wrote:
> On Thu, Sep 04, 2008 at 05:20:50PM -0700, Andrew Morton wrote:
> > On Fri, 5 Sep 2008 01:30:16 +0400
> > Dmitry Baryshkov <dbaryshkov@gmail.com> wrote:
> >
> > > Add a helper that registers simple platform_device
> > > w/o resources but with parent and device data.
> > >
> > > This is usefull to cleanup platform code from code that
> > > registers such simple devices as leds-gpio, generic-bl,
> > > etc.
> > >
> >
> > nits:
> >
> > > + *
> > > + * This function creates a simple platform device that requires minimal
> > > + * resource and memory management. Canned release function freeing memory
> > > + * allocated for the device allows drivers using such devices to be
> > > + * unloaded without waiting for the last reference to the device to be
> > > + * dropped.
> >
> > Should document the return value (tested with IS_ERR)
>
> Will the wording "Returns a valid platform device, or a valid IS_ERR
> condition containing errno" be appropriate?
Sounds good.
>
> BTW: would you prefer the followup "fix" patch or just the replacement
> one?
>
Doesn't worry me at this stage, but Greg would probably like a whole
new patch, as he probably didn't merge version 1.
next prev parent reply other threads:[~2008-09-05 18:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-04 21:30 [PATCH] platform: add new device registration helper Dmitry Baryshkov
2008-09-05 0:20 ` Andrew Morton
2008-09-05 10:33 ` Dmitry Baryshkov
2008-09-05 18:09 ` Andrew Morton [this message]
2008-09-05 0:23 ` Andrew Morton
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=20080905110937.c1a3d3f1.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=dbaryshkov@gmail.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/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