summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/mvebu/pinctrl-armada-39x.c
diff options
context:
space:
mode:
authorRussell King2017-01-13 12:03:15 +0100
committerLinus Walleij2017-01-18 09:53:25 +0100
commit30be3fb9b89c1c606a6ed35ca437426f620ae4f6 (patch)
tree57dfbc73fee8312b08e56872a3788afbaa22b129 /drivers/pinctrl/mvebu/pinctrl-armada-39x.c
parentpinctrl: mvebu: Use seq_putc() in mvebu_pinconf_group_dbg_show() (diff)
downloadkernel-qcow2-linux-30be3fb9b89c1c606a6ed35ca437426f620ae4f6.tar.gz
kernel-qcow2-linux-30be3fb9b89c1c606a6ed35ca437426f620ae4f6.tar.xz
kernel-qcow2-linux-30be3fb9b89c1c606a6ed35ca437426f620ae4f6.zip
pinctrl: mvebu: constify mvebu_mpp_ctrl structures
As the mvebu_mpp_ctrl structures contain function pointers, it is preferable for these to be made read-only to prevent the function pointers being modified. So make these const. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mvebu/pinctrl-armada-39x.c')
-rw-r--r--drivers/pinctrl/mvebu/pinctrl-armada-39x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-39x.c b/drivers/pinctrl/mvebu/pinctrl-armada-39x.c
index e288f8ba0bf1..8ebc28ac289e 100644
--- a/drivers/pinctrl/mvebu/pinctrl-armada-39x.c
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-39x.c
@@ -391,7 +391,7 @@ static const struct of_device_id armada_39x_pinctrl_of_match[] = {
{ },
};
-static struct mvebu_mpp_ctrl armada_39x_mpp_controls[] = {
+static const struct mvebu_mpp_ctrl armada_39x_mpp_controls[] = {
MPP_FUNC_CTRL(0, 59, NULL, armada_39x_mpp_ctrl),
};