From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Jamie Iles <jamie@jamieiles.com>
Cc: linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, kyungmin.park@samsung.com,
kgene.kim@samsung.com, ben-linux@fluff.org,
m.szyprowski@samsung.com
Subject: Re: [PATCH 3/4] plat-s5p: Add platform support for MIPI-CSI2 devices
Date: Thu, 02 Dec 2010 18:39:50 +0100 [thread overview]
Message-ID: <4CF7D9E6.5000409@samsung.com> (raw)
In-Reply-To: <20101202171538.GB30933@pulham.picochip.com>
Hi Jamie,
On 12/02/2010 06:15 PM, Jamie Iles wrote:
> Hi Sylwester,
>
> On Thu, Dec 02, 2010 at 05:37:41PM +0100, Sylwester Nawrocki wrote:
>> diff --git a/arch/arm/plat-s5p/dev-csis0.c b/arch/arm/plat-s5p/dev-csis0.c
>> new file mode 100644
>> index 0000000..2b1ba43
>> --- /dev/null
>> +++ b/arch/arm/plat-s5p/dev-csis0.c
>> @@ -0,0 +1,34 @@
>> +/*
>> + * Copyright (C) 2010 Samsung Electronics
>> + *
>> + * S5P series device definition for MIPI-CSI device 0
>> + *
>> + * This program is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License version 2 as
>> + * published by the Free Software Foundation.
>> +*/
>> +
>> +#include <linux/kernel.h>
>> +#include <linux/interrupt.h>
>> +#include <linux/platform_device.h>
>> +#include <mach/map.h>
>> +
>> +static struct resource s5p_csis_resource[] = {
>> + [0] = {
>> + .start = S5P_PA_CSIS0,
>> + .end = S5P_PA_CSIS0 + SZ_4K - 1,
>> + .flags = IORESOURCE_MEM,
>> + },
>> + [1] = {
>> + .start = IRQ_MIPICSI0,
>> + .end = IRQ_MIPICSI0,
>> + .flags = IORESOURCE_IRQ,
>> + }
>> +};
> Do you really need the [0] and [1] here? These are only needed if you are
> sparsely initialising an array.
I agree explicit indices are not really needed. I just followed the style of
all other resource definitions already there.
I am not quite sure what is the preference of the maintainer, I guess they want
all devices to follow same style for consistence.
Thanks,
Sylwester
--
Sylwester Nawrocki
Linux Platform Group
Samsung Poland R&D Center
WARNING: multiple messages have this Message-ID (diff)
From: s.nawrocki@samsung.com (Sylwester Nawrocki)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] plat-s5p: Add platform support for MIPI-CSI2 devices
Date: Thu, 02 Dec 2010 18:39:50 +0100 [thread overview]
Message-ID: <4CF7D9E6.5000409@samsung.com> (raw)
In-Reply-To: <20101202171538.GB30933@pulham.picochip.com>
Hi Jamie,
On 12/02/2010 06:15 PM, Jamie Iles wrote:
> Hi Sylwester,
>
> On Thu, Dec 02, 2010 at 05:37:41PM +0100, Sylwester Nawrocki wrote:
>> diff --git a/arch/arm/plat-s5p/dev-csis0.c b/arch/arm/plat-s5p/dev-csis0.c
>> new file mode 100644
>> index 0000000..2b1ba43
>> --- /dev/null
>> +++ b/arch/arm/plat-s5p/dev-csis0.c
>> @@ -0,0 +1,34 @@
>> +/*
>> + * Copyright (C) 2010 Samsung Electronics
>> + *
>> + * S5P series device definition for MIPI-CSI device 0
>> + *
>> + * This program is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License version 2 as
>> + * published by the Free Software Foundation.
>> +*/
>> +
>> +#include <linux/kernel.h>
>> +#include <linux/interrupt.h>
>> +#include <linux/platform_device.h>
>> +#include <mach/map.h>
>> +
>> +static struct resource s5p_csis_resource[] = {
>> + [0] = {
>> + .start = S5P_PA_CSIS0,
>> + .end = S5P_PA_CSIS0 + SZ_4K - 1,
>> + .flags = IORESOURCE_MEM,
>> + },
>> + [1] = {
>> + .start = IRQ_MIPICSI0,
>> + .end = IRQ_MIPICSI0,
>> + .flags = IORESOURCE_IRQ,
>> + }
>> +};
> Do you really need the [0] and [1] here? These are only needed if you are
> sparsely initialising an array.
I agree explicit indices are not really needed. I just followed the style of
all other resource definitions already there.
I am not quite sure what is the preference of the maintainer, I guess they want
all devices to follow same style for consistence.
Thanks,
Sylwester
--
Sylwester Nawrocki
Linux Platform Group
Samsung Poland R&D Center
next prev parent reply other threads:[~2010-12-02 17:39 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 16:37 [PATCH 0/4] ARM: S5P: Add platform support for MIPI-CSI2 devices Sylwester Nawrocki
2010-12-02 16:37 ` Sylwester Nawrocki
2010-12-02 16:37 ` [PATCH 1/4] mach-s5pv210: Add platform definitions for mipi-csis Sylwester Nawrocki
2010-12-02 16:37 ` Sylwester Nawrocki
2010-12-03 4:22 ` Kukjin Kim
2010-12-03 4:22 ` Kukjin Kim
2010-12-03 5:30 ` Kyungmin Park
2010-12-03 5:30 ` Kyungmin Park
2010-12-03 8:19 ` Kukjin Kim
2010-12-03 8:19 ` Kukjin Kim
2010-12-03 8:32 ` Kukjin Kim
2010-12-03 8:32 ` Kukjin Kim
2010-12-03 15:38 ` Sylwester Nawrocki
2010-12-03 15:38 ` Sylwester Nawrocki
2010-12-03 13:23 ` Sylwester Nawrocki
2010-12-03 13:23 ` Sylwester Nawrocki
2010-12-02 16:37 ` [PATCH 2/4] mach-s5pv310: Add resource " Sylwester Nawrocki
2010-12-02 16:37 ` Sylwester Nawrocki
2010-12-03 4:36 ` Kukjin Kim
2010-12-03 4:36 ` Kukjin Kim
2010-12-03 4:59 ` Jassi Brar
2010-12-03 4:59 ` Jassi Brar
2010-12-03 5:34 ` Kyungmin Park
2010-12-03 5:34 ` Kyungmin Park
2010-12-03 5:52 ` Jassi Brar
2010-12-03 5:52 ` Jassi Brar
2010-12-03 10:24 ` Sylwester Nawrocki
2010-12-03 10:24 ` Sylwester Nawrocki
2010-12-02 16:37 ` [PATCH 3/4] plat-s5p: Add platform support for MIPI-CSI2 devices Sylwester Nawrocki
2010-12-02 16:37 ` Sylwester Nawrocki
2010-12-02 17:15 ` Jamie Iles
2010-12-02 17:15 ` Jamie Iles
2010-12-02 17:39 ` Sylwester Nawrocki [this message]
2010-12-02 17:39 ` Sylwester Nawrocki
2010-12-02 23:14 ` Jamie Iles
2010-12-02 23:14 ` Jamie Iles
2010-12-03 1:37 ` Jassi Brar
2010-12-03 1:37 ` Jassi Brar
2010-12-03 9:18 ` Jamie Iles
2010-12-03 9:18 ` Jamie Iles
2010-12-03 9:59 ` Marek Szyprowski
2010-12-03 9:59 ` Marek Szyprowski
2010-12-03 4:53 ` Kukjin Kim
2010-12-03 4:53 ` Kukjin Kim
2010-12-03 13:48 ` Sylwester Nawrocki
2010-12-03 13:48 ` Sylwester Nawrocki
2010-12-03 5:14 ` Jassi Brar
2010-12-03 5:14 ` Jassi Brar
2010-12-03 5:36 ` Kyungmin Park
2010-12-03 5:36 ` Kyungmin Park
2010-12-02 16:37 ` [PATCH 4/4] mach-s5pv210: Add MIPI-CSI DPHY clock definition Sylwester Nawrocki
2010-12-02 16:37 ` Sylwester Nawrocki
2010-12-03 4:11 ` [PATCH 0/4] ARM: S5P: Add platform support for MIPI-CSI2 devices Kukjin Kim
2010-12-03 4:11 ` Kukjin Kim
2010-12-03 10:00 ` Sylwester Nawrocki
2010-12-03 10:00 ` Sylwester Nawrocki
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=4CF7D9E6.5000409@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=ben-linux@fluff.org \
--cc=jamie@jamieiles.com \
--cc=kgene.kim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.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.