Commit 9e04a0ed authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

pinctrl: renesas: r8a77470: Reduce size for narrow VIN1 channel

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: 50f3f2d7 ("pinctrl: sh-pfc: Reduce kernel size for narrow VIN channels")
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/52716fa89139f6f92592633edb52804d4c5e18f0.1640269757.git.geert+renesas@glider.be
parent efe80cdf
...@@ -2140,7 +2140,7 @@ static const unsigned int vin0_clk_mux[] = { ...@@ -2140,7 +2140,7 @@ static const unsigned int vin0_clk_mux[] = {
VI0_CLK_MARK, VI0_CLK_MARK,
}; };
/* - VIN1 ------------------------------------------------------------------- */ /* - VIN1 ------------------------------------------------------------------- */
static const union vin_data vin1_data_pins = { static const union vin_data12 vin1_data_pins = {
.data12 = { .data12 = {
RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2),
RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 4),
...@@ -2150,7 +2150,7 @@ static const union vin_data vin1_data_pins = { ...@@ -2150,7 +2150,7 @@ static const union vin_data vin1_data_pins = {
RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 16), 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 = { .data12 = {
VI1_DATA0_MARK, VI1_DATA1_MARK, VI1_DATA0_MARK, VI1_DATA1_MARK,
VI1_DATA2_MARK, VI1_DATA3_MARK, VI1_DATA2_MARK, VI1_DATA3_MARK,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment