From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Linus Walleij <linus.walleij@stericsson.com>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Linus Walleij <linus.walleij@linaro.org>,
Felipe Balbi <balbi@ti.com>, Benoit Cousson <b-cousson@ti.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
Mitch Bradley <wmb@firmworks.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
"Rafael J. Wysocki" <rjw@sisk.pl>, Kevin Hilman <khilman@ti.com>,
Rickard Andersson <rickard.andersson@stericsson.com>,
Russell King <linux@arm.linux.org.uk>
Subject: Re: [PATCH] drivers/pinctrl: grab default handles from device core
Date: Wed, 12 Dec 2012 12:58:28 +0100 [thread overview]
Message-ID: <20121212115828.GJ4398@game.jcrosoft.org> (raw)
In-Reply-To: <20121211181336.GD25714@kroah.com>
On 10:13 Tue 11 Dec , Greg Kroah-Hartman wrote:
> On Tue, Dec 11, 2012 at 02:40:46PM +0100, Linus Walleij wrote:
> > diff --git a/include/linux/device.h b/include/linux/device.h
> > index 86ef6ab..dc399ab 100644
> > --- a/include/linux/device.h
> > +++ b/include/linux/device.h
> > @@ -21,6 +21,7 @@
> > #include <linux/compiler.h>
> > #include <linux/types.h>
> > #include <linux/mutex.h>
> > +#include <linux/pinctrl/devinfo.h>
> > #include <linux/pm.h>
> > #include <linux/atomic.h>
> > #include <linux/ratelimit.h>
> > @@ -605,6 +606,8 @@ struct device_dma_parameters {
> > * @pm_domain: Provide callbacks that are executed during system suspend,
> > * hibernation, system resume and during runtime PM transitions
> > * along with subsystem-level and driver-level callbacks.
> > + * @pins: For device pin management.
> > + * See Documentation/pinctrl.txt for details.
> > * @numa_node: NUMA node this device is close to.
> > * @dma_mask: Dma mask (if dma'ble device).
> > * @coherent_dma_mask: Like dma_mask, but for alloc_coherent mapping as not all
> > @@ -656,6 +659,10 @@ struct device {
> > struct dev_pm_info power;
> > struct dev_pm_domain *pm_domain;
> >
> > +#ifdef CONFIG_PINCTRL
> > + struct dev_pin_info pins;
> > +#endif
>
> Can't you just make this a * to the structure, saving a bit of space for
> those that don't use this structure? Ok, it's only saving one pointer,
> so it's really not a big deal to me if you don't want to do this, just
> asking...
>
> Also, this will have to wait until after 3.8-rc1 before I can consider
> merging it, I'm a bit busy for the next two weeks at the least...
can do do not put ifdef in the struct as if will force us to put ifdef in the
c code too instead of just use a inline function
Best Regards,
J.
>
> thanks,
>
> greg k-h
next prev parent reply other threads:[~2012-12-12 12:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-11 13:40 Linus Walleij
2012-12-11 18:13 ` Greg Kroah-Hartman
2012-12-12 11:58 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-12-12 19:58 ` Linus Walleij
2012-12-12 19:56 ` Linus Walleij
2012-12-12 22:26 ` 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=20121212115828.GJ4398@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=b-cousson@ti.com \
--cc=balbi@ti.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=dmitry.torokhov@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=khilman@ti.com \
--cc=linus.walleij@linaro.org \
--cc=linus.walleij@stericsson.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=rickard.andersson@stericsson.com \
--cc=rjw@sisk.pl \
--cc=thomas.petazzoni@free-electrons.com \
--cc=ulf.hansson@linaro.org \
--cc=wmb@firmworks.com \
/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
Powered by JetHome