All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Heiko Stübner" <heiko@sntech.de>
Cc: Grant Likely <grant.likely@secretlab.ca>,
	Rob Herring <rob.herring@calxeda.com>,
	linux-input@vger.kernel.org, devicetree-discuss@lists.ozlabs.org
Subject: Re: [PATCH 4/4] Input: auo_pixcir_ts - add devicetree support
Date: Mon, 25 Feb 2013 23:05:30 -0800	[thread overview]
Message-ID: <20130226070530.GC18407@core.coreip.homeip.net> (raw)
In-Reply-To: <201302251447.18385.heiko@sntech.de>

On Mon, Feb 25, 2013 at 02:47:17PM +0100, Heiko Stübner wrote:
> Am Montag, 25. Februar 2013, 04:06:41 schrieb Dmitry Torokhov:
> > On Sun, Feb 24, 2013 at 10:58:00AM +0100, Heiko Stübner wrote:
> > > Hi Dmitry,
> > > 
> > > Am Sonntag, 24. Februar 2013, 09:00:15 schrieb Dmitry Torokhov:
> > > > Hi Heiko,
> > > > 
> > > > On Sat, Feb 23, 2013 at 12:58:16PM +0100, Heiko Stübner wrote:
> > > > > +static struct auo_pixcir_ts_platdata *auo_pixcir_parse_dt(struct
> > > > > device *dev) +{
> > > > > +	struct auo_pixcir_ts_platdata *pdata = NULL;
> > > > > +
> > > > > +#ifdef CONFIG_OF
> > > > > +	struct device_node *np = dev->of_node;
> > > > > +
> > > > > +	if (!np)
> > > > > +		return NULL;
> > > > > +
> > > > > +	pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
> > > > > +	if (!pdata) {
> > > > > +		dev_err(dev, "failed to allocate platform data\n");
> > > > > +		return NULL;
> > > > > +	}
> > > > 
> > > > I disike #ifdefs in the middle of the code, also it would be nice if we
> > > > signal the proper error instead of always using -EINVAL when there are
> > > > issues with platform/DT data.
> > > > 
> > > > How about the version of the patch below?
> > > 
> > > I tested it and everything of course still works :-) .
> > 
> > OK, great, then I will queue these for the next merge window.
> > 
> > Could you also try this patch (it however needs attached patch enhancing
> > devres to support custom actions).
> > 
> > Thanks.
> 
> In general looks really nice and also works. I have some small nitpicks (patch 
> desc, reset gpio naming) and it will also need to use 
> devm_request_threaded_irq to get the irq correctly freed on removal. [all also 
> marked at the corresponding places below]
> 
> Otherwise:
> 
> Tested-by: Heiko Stuebner <heiko@sntech.de>

Thank you Heiko, I made the changes you mentioned and queued with the
rest of the patches for 3.10.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2013-02-26  7:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-23 11:55 [PATCH 0/4] Input: auo_pixcir_ts - add devicetree support Heiko Stübner
     [not found] ` <201302231255.23772.heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2013-02-23 11:56   ` [PATCH 1/4] Input: auo-pixcir-ts - set input direction for interrupt gpio Heiko Stübner
2013-02-23 11:56   ` [PATCH 2/4] Input: auo-pixcir-ts - handle reset gpio directly Heiko Stübner
2013-02-23 11:57   ` [PATCH 3/4] Input: auo_pixcir_ts - keep own pointer to platform_data Heiko Stübner
2013-02-23 11:58   ` [PATCH 4/4] Input: auo_pixcir_ts - add devicetree support Heiko Stübner
2013-02-24  8:00     ` Dmitry Torokhov
     [not found]       ` <20130224080015.GA20590-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2013-02-24  9:58         ` Heiko Stübner
2013-02-25  3:06           ` Dmitry Torokhov
2013-02-25 13:47             ` Heiko Stübner
2013-02-26  7:05               ` Dmitry Torokhov [this message]

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=20130226070530.GC18407@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=heiko@sntech.de \
    --cc=linux-input@vger.kernel.org \
    --cc=rob.herring@calxeda.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.