On Mon, Oct 19, 2020 at 2:43 PM Biju Das <biju.das.jz@xxxxxxxxxxxxxx> wrote: > This driver supports both RZ/G1[M|N] and R-Car M2-W/M2-N(R8A779[1|3]) > SoC's. Optimize pinctrl image size for RZ/G1[M|N], when R-Car M2-W/M2-N > (R8A779[1|3]) SoC's are disabled in the shmobile_defconfig. > > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx> Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> i.e. will queue in renesas-pinctrl-for-v5.11, with comments added to the #endifs where appropriate. > --- a/drivers/pinctrl/renesas/pfc-r8a7791.c > +++ b/drivers/pinctrl/renesas/pfc-r8a7791.c > @@ -1700,6 +1700,7 @@ static const struct sh_pfc_pin pinmux_pins[] = { > PINMUX_GPIO_GP_ALL(), > }; > > +#if defined(CONFIG_PINCTRL_PFC_R8A7791) || defined(CONFIG_PINCTRL_PFC_R8A7793) > /* - ADI -------------------------------------------------------------------- */ > static const unsigned int adi_common_pins[] = { > /* ADIDATA, ADICS/SAMP, ADICLK */ > @@ -1765,7 +1766,7 @@ static const unsigned int adi_chsel2_b_mux[] = { > /* ADICHS B 2 */ > ADICHS2_B_MARK, > }; > - > +#endif > /* - Audio Clock ------------------------------------------------------------ */ > static const unsigned int audio_clk_a_pins[] = { > /* CLK */ > @@ -2553,6 +2554,7 @@ static const unsigned int intc_irq3_pins[] = { > static const unsigned int intc_irq3_mux[] = { > IRQ3_MARK, > }; > +#if defined(CONFIG_PINCTRL_PFC_R8A7791) || defined(CONFIG_PINCTRL_PFC_R8A7793) BTW, if we get more of these automotive-only pin groups, we may consider moving them together, to reduce the number of #ifdefs. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx 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