linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: sh-pfc: r8a7795: add newlines for better diff view
@ 2017-10-06 10:37 Wolfram Sang
  2017-10-06 11:35 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: Wolfram Sang @ 2017-10-06 10:37 UTC (permalink / raw)
  To: linux-gpio; +Cc: linux-renesas-soc, Geert Uytterhoeven, Wolfram Sang

Be consistent with the newlines after structs. This makes diffs a lot
easier to parse when comparing with other SoCs/versions.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
index ccfc96c4d28c3d..105b564e39c1b2 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
@@ -1678,6 +1678,7 @@ static const unsigned int audio_clkout2_b_pins[] = {
 static const unsigned int audio_clkout2_b_mux[] = {
 	AUDIO_CLKOUT2_B_MARK,
 };
+
 static const unsigned int audio_clkout3_a_pins[] = {
 	/* CLKOUT3 */
 	RCAR_GP_PIN(5, 19),
@@ -2967,6 +2968,7 @@ static const unsigned int msiof3_rxd_d_pins[] = {
 static const unsigned int msiof3_rxd_d_mux[] = {
 	MSIOF3_RXD_D_MARK,
 };
+
 static const unsigned int msiof3_clk_e_pins[] = {
 	/* SCK */
 	RCAR_GP_PIN(2, 3),
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pinctrl: sh-pfc: r8a7795: add newlines for better diff view
  2017-10-06 10:37 [PATCH] pinctrl: sh-pfc: r8a7795: add newlines for better diff view Wolfram Sang
@ 2017-10-06 11:35 ` Geert Uytterhoeven
  0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2017-10-06 11:35 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: linux-gpio@vger.kernel.org, Linux-Renesas

Hi Wolfram,

On Fri, Oct 6, 2017 at 12:37 PM, Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> Be consistent with the newlines after structs. This makes diffs a lot
> easier to parse when comparing with other SoCs/versions.

I'm all for consistency, but...

> --- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c
> @@ -1678,6 +1678,7 @@ static const unsigned int audio_clkout2_b_pins[] = {
>  static const unsigned int audio_clkout2_b_mux[] = {
>         AUDIO_CLKOUT2_B_MARK,
>  };
> +

That's a stray newline in both drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c and
drivers/pinctrl/sh-pfc/pfc-r8a7796.c, which should be removed from the latter
instead.

>  static const unsigned int audio_clkout3_a_pins[] = {
>         /* CLKOUT3 */
>         RCAR_GP_PIN(5, 19),
> @@ -2967,6 +2968,7 @@ static const unsigned int msiof3_rxd_d_pins[] = {
>  static const unsigned int msiof3_rxd_d_mux[] = {
>         MSIOF3_RXD_D_MARK,
>  };
> +

drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c has a newline here because H3 ES1.x
doesn't have the fifth set of MSIOF pins, thus msiof3_rxd_d_mux() is the
last entry of the MSIOF section.

>  static const unsigned int msiof3_clk_e_pins[] = {
>         /* SCK */
>         RCAR_GP_PIN(2, 3),

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-06 11:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-06 10:37 [PATCH] pinctrl: sh-pfc: r8a7795: add newlines for better diff view Wolfram Sang
2017-10-06 11:35 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).