Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: actions: pinctrl-s900: Constify s900_padinfo[]

The only usage of s900_padinfo[] is to assign it to the padinfo field in
the owl_pinctrl_soc_data struct, which is a const pointer. Make it const
to allow the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200830224311.36994-4-rikard.falkeborn@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Rikard Falkeborn and committed by
Linus Walleij
8a643cc8 d01afb71

+1 -1
+1 -1
drivers/pinctrl/actions/pinctrl-s900.c
··· 1556 1556 static PAD_ST_CONF(I2S_MCLK0, 1, 0, 1); 1557 1557 1558 1558 /* Pad info table */ 1559 - static struct owl_padinfo s900_padinfo[NUM_PADS] = { 1559 + static const struct owl_padinfo s900_padinfo[NUM_PADS] = { 1560 1560 [ETH_TXD0] = PAD_INFO_ST(ETH_TXD0), 1561 1561 [ETH_TXD1] = PAD_INFO_ST(ETH_TXD1), 1562 1562 [ETH_TXEN] = PAD_INFO_ST(ETH_TXEN),