Commit 0256b6ae authored by Geert Uytterhoeven's avatar Geert Uytterhoeven
Browse files

pinctrl: renesas: Annotate sentinels in tables



It does not make sense to have a comma after a sentinel, as any new
elements must be added before the sentinel.  Hence drop all such commas.

Add comments to clarify the purpose of the empty elements.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/845f1d8285dd44522af1b0f429d4c6bd4759eb9e.1678272180.git.geert+renesas@glider.be
parent 3c246506
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -645,7 +645,7 @@ static const struct of_device_id sh_pfc_of_table[] = {
		.data = &sh73a0_pinmux_info,
	},
#endif
	{ },
	{ /* sentinel */ }
};
#endif

@@ -1411,7 +1411,7 @@ static const struct platform_device_id sh_pfc_id_table[] = {
#ifdef CONFIG_PINCTRL_PFC_SHX3
	{ "pfc-shx3", (kernel_ulong_t)&shx3_pinmux_info },
#endif
	{ },
	{ /* sentinel */ }
};

static struct platform_driver sh_pfc_driver = {
+1 −1
Original line number Diff line number Diff line
@@ -1644,7 +1644,7 @@ static const struct pinmux_cfg_reg pinmux_config_regs[] = {
		FN_SEL_HSI_1_0_00, FN_SEL_HSI_1_0_01, 0, 0,
		))
	},
	{ },
	{ /* sentinel */ }
};

const struct sh_pfc_soc_info emev2_pinmux_info = {
+2 −2
Original line number Diff line number Diff line
@@ -2384,7 +2384,7 @@ static const struct pinmux_cfg_reg pinmux_config_regs[] = {
			MSEL8CR_00_0, MSEL8CR_00_1,
		))
	},
	{ },
	{ /* sentinel */ }
};

static const struct pinmux_data_reg pinmux_data_regs[] = {
@@ -2510,7 +2510,7 @@ static const struct pinmux_data_reg pinmux_data_regs[] = {
			PORT323_DATA, PORT322_DATA, PORT321_DATA, PORT320_DATA,
		))
	},
	{ },
	{ /* sentinel */ }
};

static const struct pinmux_irq pinmux_irqs[] = {
+2 −2
Original line number Diff line number Diff line
@@ -3348,7 +3348,7 @@ static const struct pinmux_cfg_reg pinmux_config_regs[] = {
			MSEL5CR_0_0,	MSEL5CR_0_1,
		))
	},
	{ },
	{ /* sentinel */ }
};

static const struct pinmux_data_reg pinmux_data_regs[] = {
@@ -3452,7 +3452,7 @@ static const struct pinmux_data_reg pinmux_data_regs[] = {
		0, 0, 0, 0,
		0, 0, 0, 0 ))
	},
	{ },
	{ /* sentinel */ }
};

static const struct pinmux_irq pinmux_irqs[] = {
+1 −1
Original line number Diff line number Diff line
@@ -3252,7 +3252,7 @@ static const struct pinmux_cfg_reg pinmux_config_regs[] = {
		/* SEL_SSI0 [2] */
		FN_SEL_SSI0_0, FN_SEL_SSI0_1, 0, 0, ))
	},
	{ },
	{ /* sentinel */ }
};

static int r8a77470_pin_to_pocctrl(unsigned int pin, u32 *pocctrl)
Loading