All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert+renesas@glider.be>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org,
	Geert Uytterhoeven <geert+renesas@glider.be>
Subject: [PATCH 01/60] pinctrl: renesas: r8a77470: Reduce size for narrow VIN1 channel
Date: Thu, 23 Dec 2021 15:41:11 +0100	[thread overview]
Message-ID: <52716fa89139f6f92592633edb52804d4c5e18f0.1640269757.git.geert+renesas@glider.be> (raw)
In-Reply-To: <cover.1640269757.git.geert+renesas@glider.be>

The second video-in channel on RZ/G1C has only 12 data lanes, but the
pin control driver uses the vin_data union, which is meant for 24 data
lanes, thus wasting space.

Fix this by using the vin_data12 union instead.

This reduces kernel size by 96 bytes.

Fixes: 50f3f2d73e3426ba ("pinctrl: sh-pfc: Reduce kernel size for narrow VIN channels")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
All other Renesas pin control drivers were fixed, but RZ/G1C was
forgotten, as RZ/G1C video-in support went in just before these fixes.
---
 drivers/pinctrl/renesas/pfc-r8a77470.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/renesas/pfc-r8a77470.c b/drivers/pinctrl/renesas/pfc-r8a77470.c
index e6e5487691c16f35..cf7153d06a953863 100644
--- a/drivers/pinctrl/renesas/pfc-r8a77470.c
+++ b/drivers/pinctrl/renesas/pfc-r8a77470.c
@@ -2140,7 +2140,7 @@ static const unsigned int vin0_clk_mux[] = {
 	VI0_CLK_MARK,
 };
 /* - VIN1 ------------------------------------------------------------------- */
-static const union vin_data vin1_data_pins = {
+static const union vin_data12 vin1_data_pins = {
 	.data12 = {
 		RCAR_GP_PIN(3,  1), RCAR_GP_PIN(3, 2),
 		RCAR_GP_PIN(3,  3), RCAR_GP_PIN(3, 4),
@@ -2150,7 +2150,7 @@ static const union vin_data vin1_data_pins = {
 		RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 16),
 	},
 };
-static const union vin_data vin1_data_mux = {
+static const union vin_data12 vin1_data_mux = {
 	.data12 = {
 		VI1_DATA0_MARK, VI1_DATA1_MARK,
 		VI1_DATA2_MARK, VI1_DATA3_MARK,
-- 
2.25.1


  reply	other threads:[~2021-12-23 14:42 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-23 14:41 [PATCH 00/60] pinctrl: renesas: Share more pin group data Geert Uytterhoeven
2021-12-23 14:41 ` Geert Uytterhoeven [this message]
2021-12-23 14:41 ` [PATCH 02/60] pinctrl: renesas: Rename sh_pfc_soc_operations instances Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 03/60] pinctrl: renesas: Reformat macros defining struct initializers Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 04/60] pinctrl: renesas: Rename SH_PFC_PIN_GROUP{,_ALIAS} args Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 05/60] pinctrl: renesas: Add generic support for pin group subsets Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 06/60] pinctrl: renesas: Add generic support for resizable buses Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 07/60] pinctrl: renesas: r8a7740: Share BSC pin group data Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 08/60] pinctrl: renesas: emev2: Share CF " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 09/60] pinctrl: renesas: r8a7791: Share HSCIF1 " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 10/60] pinctrl: renesas: sh73a0: Share KEYIN " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 11/60] pinctrl: renesas: r8a7740: Share LCD " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 12/60] pinctrl: renesas: sh73a0: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 13/60] pinctrl: renesas: r8a73a4: Share MMC " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 14/60] pinctrl: renesas: r8a7740: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 15/60] pinctrl: renesas: r8a77470: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 16/60] pinctrl: renesas: r8a7778: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 17/60] pinctrl: renesas: r8a7779: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 18/60] pinctrl: renesas: r8a7790: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 19/60] pinctrl: renesas: r8a7791: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 20/60] pinctrl: renesas: r8a7794: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 21/60] pinctrl: renesas: r8a77970: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 22/60] pinctrl: renesas: r8a77980: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 23/60] pinctrl: renesas: r8a77995: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 24/60] pinctrl: renesas: r8a779a0: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 25/60] pinctrl: renesas: sh73a0: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 26/60] pinctrl: renesas: r8a77470: Share QSPI " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 27/60] pinctrl: renesas: r8a7790: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 28/60] pinctrl: renesas: r8a7791: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 29/60] pinctrl: renesas: r8a7792: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 30/60] pinctrl: renesas: r8a7794: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 31/60] pinctrl: renesas: r8a77950: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 32/60] pinctrl: renesas: r8a77951: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 33/60] pinctrl: renesas: r8a77965: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 34/60] pinctrl: renesas: r8a7796: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 35/60] pinctrl: renesas: r8a77990: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 36/60] pinctrl: renesas: r8a779a0: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 37/60] pinctrl: renesas: r8a77970: Share RPC " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 38/60] pinctrl: renesas: r8a77980: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 39/60] pinctrl: renesas: r8a73a4: Share SDHI " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 40/60] pinctrl: renesas: r8a7740: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 41/60] pinctrl: renesas: r8a77470: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 42/60] pinctrl: renesas: r8a7778: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 43/60] pinctrl: renesas: r8a7779: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 44/60] pinctrl: renesas: r8a7790: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 45/60] pinctrl: renesas: r8a7791: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 46/60] pinctrl: renesas: r8a7792: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 47/60] pinctrl: renesas: r8a7794: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 48/60] pinctrl: renesas: r8a77950: " Geert Uytterhoeven
2021-12-23 14:41 ` [PATCH 49/60] pinctrl: renesas: r8a77951: " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 50/60] pinctrl: renesas: r8a77965: " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 51/60] pinctrl: renesas: r8a7796: " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 52/60] pinctrl: renesas: r8a77990: " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 53/60] pinctrl: renesas: sh73a0: " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 54/60] pinctrl: renesas: emev2: Share SDI " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 55/60] pinctrl: renesas: r8a7790: Share USB1 " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 56/60] pinctrl: renesas: r8a7790: Share more VIN " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 57/60] pinctrl: renesas: r8a77951: " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 58/60] pinctrl: renesas: r8a7796: " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 59/60] pinctrl: renesas: r8a77965: " Geert Uytterhoeven
2021-12-23 14:42 ` [PATCH 60/60] pinctrl: renesas: r8a77990: " Geert Uytterhoeven

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=52716fa89139f6f92592633edb52804d4c5e18f0.1640269757.git.geert+renesas@glider.be \
    --to=geert+renesas@glider.be \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-renesas-soc@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.