All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	linux-sh@vger.kernel.org
Cc: linux-serial@vger.kernel.org,
	Bastian Hecht <hechtb+renesas@gmail.com>,
	Paul Mundt <lethal@linux-sh.org>
Subject: Re: [PATCH v2 12/29] ARM: shmobile: r7s72100: Don't define SCIF platform data in an array
Date: Sun, 10 Nov 2013 18:35:36 +0000	[thread overview]
Message-ID: <527FD1F8.7040309@cogentembedded.com> (raw)
In-Reply-To: <1384054421-13357-13-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

Hello.

On 10-11-2013 7:33, Laurent Pinchart wrote:

> The SCIF driver is transitioning to platform resources. Board code will
> thus need to define an array of resources for each SCIF device. This is
> incompatible with the macro-based SCIF platform data definition as an
> array. Rework the macro to define platform data as individual
> structures.

> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
>   arch/arm/mach-shmobile/setup-r7s72100.c | 49 +++++++++++++++------------------
>   1 file changed, 22 insertions(+), 27 deletions(-)

> diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c
> index d4eb509..dbcbb81 100644
> --- a/arch/arm/mach-shmobile/setup-r7s72100.c
> +++ b/arch/arm/mach-shmobile/setup-r7s72100.c
[...]
> @@ -39,35 +39,30 @@
[...]
> -static inline void r7s72100_register_scif(int idx)
> -{
> -	platform_device_register_data(&platform_bus, "sh-sci", idx, &scif[idx],
> -				      sizeof(struct plat_sci_port));
> -}
> +#define r7s72100_register_scif(index)					       \
> +	platform_device_register_data(&platform_bus, "sh-sci", index,	       \
> +					  &scif##index##_platform_data,	       \
> +					  sizeof(scif##index##_platform_data))

    Not sure why you changes the indentation here, it was alright before the 
patch.

WBR, Sergei


WARNING: multiple messages have this Message-ID (diff)
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	linux-sh@vger.kernel.org
Cc: linux-serial@vger.kernel.org,
	Bastian Hecht <hechtb+renesas@gmail.com>,
	Paul Mundt <lethal@linux-sh.org>
Subject: Re: [PATCH v2 12/29] ARM: shmobile: r7s72100: Don't define SCIF platform data in an array
Date: Sun, 10 Nov 2013 22:35:36 +0400	[thread overview]
Message-ID: <527FD1F8.7040309@cogentembedded.com> (raw)
In-Reply-To: <1384054421-13357-13-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

Hello.

On 10-11-2013 7:33, Laurent Pinchart wrote:

> The SCIF driver is transitioning to platform resources. Board code will
> thus need to define an array of resources for each SCIF device. This is
> incompatible with the macro-based SCIF platform data definition as an
> array. Rework the macro to define platform data as individual
> structures.

> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
>   arch/arm/mach-shmobile/setup-r7s72100.c | 49 +++++++++++++++------------------
>   1 file changed, 22 insertions(+), 27 deletions(-)

> diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c
> index d4eb509..dbcbb81 100644
> --- a/arch/arm/mach-shmobile/setup-r7s72100.c
> +++ b/arch/arm/mach-shmobile/setup-r7s72100.c
[...]
> @@ -39,35 +39,30 @@
[...]
> -static inline void r7s72100_register_scif(int idx)
> -{
> -	platform_device_register_data(&platform_bus, "sh-sci", idx, &scif[idx],
> -				      sizeof(struct plat_sci_port));
> -}
> +#define r7s72100_register_scif(index)					       \
> +	platform_device_register_data(&platform_bus, "sh-sci", index,	       \
> +					  &scif##index##_platform_data,	       \
> +					  sizeof(scif##index##_platform_data))

    Not sure why you changes the indentation here, it was alright before the 
patch.

WBR, Sergei


  reply	other threads:[~2013-11-10 18:35 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-10  3:33 [PATCH v2 00/29] Add OF support to the sh-sci serial port driver Laurent Pinchart
2013-11-10  3:33 ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 01/29] serial: sh-sci: Sort headers alphabetically Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 02/29] serial: sh-sci: Remove baud rate calculation algorithm 5 Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 03/29] serial: sh-sci: Simplify baud rate calculation algorithms Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 04/29] serial: sh-sci: Remove duplicate interrupt check in verify port op Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 05/29] serial: sh-sci: Set the UPF_FIXED_PORT flag Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 06/29] serial: sh-sci: Don't check IRQ in verify port operation Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 07/29] serial: sh-sci: Support resources passed through platform resources Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 08/29] ARM: shmobile: sh7372: Use macros to declare SCIF devices Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 09/29] ARM: shmobile: sh73a0: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 10/29] ARM: shmobile: r8a7740: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 11/29] ARM: shmobile: r8a7779: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 12/29] ARM: shmobile: r7s72100: Don't define SCIF platform data in an array Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10 18:35   ` Sergei Shtylyov [this message]
2013-11-10 18:35     ` Sergei Shtylyov
2013-11-11  2:41     ` Laurent Pinchart
2013-11-11  2:41       ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 13/29] ARM: shmobile: r8a73a4: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 14/29] ARM: shmobile: r8a7778: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 15/29] ARM: shmobile: r8a7790: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 16/29] ARM: shmobile: r8a7791: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 17/29] ARM: shmobile: sh7372: Declare SCIF register base and IRQ as resources Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 18/29] ARM: shmobile: sh73a0: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 19/29] ARM: shmobile: r7s72100: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 20/29] ARM: shmobile: r8a73a4: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 21/29] ARM: shmobile: r8a7740: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 22/29] ARM: shmobile: r8a7778: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 23/29] ARM: shmobile: r8a7779: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 24/29] ARM: shmobile: r8a7790: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 25/29] ARM: shmobile: r8a7791: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 26/29] sh: " Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 27/29] serial: sh-sci: Remove platform data mapbase and irqs fields Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 28/29] serial: sh-sci: Add device tree bindings documentation Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-10 18:07   ` Sergei Shtylyov
2013-11-10 18:07     ` Sergei Shtylyov
2013-11-11  2:39     ` Laurent Pinchart
2013-11-11  2:39       ` Laurent Pinchart
2013-11-11  9:40   ` Mark Rutland
2013-11-11 13:26     ` Laurent Pinchart
2013-11-11 13:26       ` Laurent Pinchart
2013-11-11 15:48       ` Mark Rutland
2013-11-12 13:56         ` Laurent Pinchart
2013-11-12 13:56           ` Laurent Pinchart
2013-11-10  3:33 ` [PATCH v2 29/29] serial: sh-sci: Add OF support Laurent Pinchart
2013-11-10  3:33   ` Laurent Pinchart
2013-11-19  1:55 ` [PATCH v2 00/29] Add OF support to the sh-sci serial port driver Simon Horman
2013-11-19  1:55   ` Simon Horman
2013-11-19 13:12   ` Laurent Pinchart
2013-11-19 13:12     ` Laurent Pinchart
2013-11-20  0:18     ` Simon Horman
2013-11-20  0:18       ` Simon Horman

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=527FD1F8.7040309@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=hechtb+renesas@gmail.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=lethal@linux-sh.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    /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.