diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-08-31 00:43:11 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-09-12 12:15:19 +0200 |
commit | 8a643cc8d56d12e56cdd08139566a28b6150b231 (patch) | |
tree | daa4306fd8fff90fecb85540c834280b15d47a9e /drivers/pinctrl/actions | |
parent | d01afb7115b190a594441d152a5dd364b9e0d602 (diff) | |
download | lwn-8a643cc8d56d12e56cdd08139566a28b6150b231.tar.gz lwn-8a643cc8d56d12e56cdd08139566a28b6150b231.zip |
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>
Diffstat (limited to 'drivers/pinctrl/actions')
-rw-r--r-- | drivers/pinctrl/actions/pinctrl-s900.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/actions/pinctrl-s900.c b/drivers/pinctrl/actions/pinctrl-s900.c index 9492b86852e7..811249a8011e 100644 --- a/drivers/pinctrl/actions/pinctrl-s900.c +++ b/drivers/pinctrl/actions/pinctrl-s900.c @@ -1556,7 +1556,7 @@ static PAD_ST_CONF(I2S_BCLK0, 1, 1, 1); static PAD_ST_CONF(I2S_MCLK0, 1, 0, 1); /* Pad info table */ -static struct owl_padinfo s900_padinfo[NUM_PADS] = { +static const struct owl_padinfo s900_padinfo[NUM_PADS] = { [ETH_TXD0] = PAD_INFO_ST(ETH_TXD0), [ETH_TXD1] = PAD_INFO_ST(ETH_TXD1), [ETH_TXEN] = PAD_INFO_ST(ETH_TXEN), |