lkml.org 
[lkml]   [2010]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv6 1/3] ARM: imx: Add gpio-keys to plat-mxc
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-10-23 13:41    [W:0.048 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site