public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Dinh.Nguyen@freescale.com, linux-kernel@vger.kernel.org,
	amit.kucheria@canonical.com, linux@arm.linux.org.uk,
	s.hauer@pengutronix.de, grant.likely@secretlab.ca,
	linux-arm-kernel@lists.infradead.org, daniel@caiaq.de,
	valentin.longchamp@epfl.ch
Subject: Re: [PATCHv6 1/3] ARM: imx: Add gpio-keys to plat-mxc
Date: Sat, 23 Oct 2010 13:38:50 +0200	[thread overview]
Message-ID: <4CC2C94A.9040700@eukrea.com> (raw)
In-Reply-To: <20101023095049.GC8554@pengutronix.de>

Hi Uwe,

Le 23/10/2010 11:50, Uwe Kleine-König a écrit :
> On Sat, Oct 23, 2010 at 10:06:21AM +0200, Eric Bénard wrote:
>> Le 23/10/2010 04:46, Dinh.Nguyen@freescale.com a écrit :
>>> +struct platform_device *__init imx_add_gpio_keys(
>>> +		const struct gpio_keys_platform_data *pdata)
>>> +{
>>> +	return imx_add_platform_device("gpio-keys", -1, NULL,
>>> +		 0, pdata, sizeof(*pdata));
>>> +}
>>
>> What is the added value of this ?
> Is is (more or less) in line with the other imx functions that
> dynamically add platform devices.
>
>> gpio-keys is not i.MX specific so why should that land in plat-mxc ?
> I consider it OK for now.  I know Eric does/wants something similar for
> pxa.  If you want to push forward unification here that's great, but
> IMHO this is nothing that should stop this patch which is a good step
> forward.
>
Does that mean that, for example, for cpuimx51 and cpuimx51sd boards, I should 
create : imx_add_gpio_leds, imx_add_serial_8250 and imx_add_i2c_gpio functions 
instead of creating the platform_device structure in the board's files and 
using platform_add_devices to register it ?

Thanks,
Eric

  reply	other threads:[~2010-10-23 11:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-23  2:46 [PATCHv6 1/3] ARM: imx: Add gpio-keys to plat-mxc Dinh.Nguyen
2010-10-23  2:46 ` [PATCHv6 2/3] ARM: mx5: Add gpio-keys to mx51 babbage board Dinh.Nguyen
2010-10-23  2:46   ` [PATCHv6 3/3] ARM: imx: Add wake functionality to GPIO Dinh.Nguyen
2010-10-23  8:08   ` [PATCHv6 2/3] ARM: mx5: Add gpio-keys to mx51 babbage board Eric Bénard
2010-10-23  8:06 ` [PATCHv6 1/3] ARM: imx: Add gpio-keys to plat-mxc Eric Bénard
2010-10-23  9:50   ` Uwe Kleine-König
2010-10-23 11:38     ` Eric Bénard [this message]
2010-10-24 19:17       ` Uwe Kleine-König

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=4CC2C94A.9040700@eukrea.com \
    --to=eric@eukrea.com \
    --cc=Dinh.Nguyen@freescale.com \
    --cc=amit.kucheria@canonical.com \
    --cc=daniel@caiaq.de \
    --cc=grant.likely@secretlab.ca \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=s.hauer@pengutronix.de \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=valentin.longchamp@epfl.ch \
    /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