summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/freescale/pinctrl-imx7ulp.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-01-06 15:25:52 +0100
committerLinus Walleij <linus.walleij@linaro.org>2018-01-11 10:29:40 +0100
commitd6093367bc743bc6679ab75a89cd3dd93476a755 (patch)
tree554c3ee30e899e0ffe06a1ea6f30c80050339f23 /drivers/pinctrl/freescale/pinctrl-imx7ulp.c
parentpinctrl: imx: constify struct imx_pinctrl_soc_info (diff)
downloadlinux-d6093367bc743bc6679ab75a89cd3dd93476a755.tar.xz
linux-d6093367bc743bc6679ab75a89cd3dd93476a755.zip
pinctrl: imx7ulp: constify struct imx_cfg_params_decode
The decode parameters are constant mark them const. Signed-off-by: Stefan Agner <stefan@agner.ch> Acked-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/freescale/pinctrl-imx7ulp.c')
-rw-r--r--drivers/pinctrl/freescale/pinctrl-imx7ulp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/freescale/pinctrl-imx7ulp.c b/drivers/pinctrl/freescale/pinctrl-imx7ulp.c
index 0406d8b39e6a..f363e45fd246 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx7ulp.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx7ulp.c
@@ -266,7 +266,7 @@ static const struct pinctrl_pin_desc imx7ulp_pinctrl_pads[] = {
#define BP_MUX_MODE 8
#define BM_PULL_ENABLED BIT(1)
-struct imx_cfg_params_decode imx7ulp_cfg_decodes[] = {
+static const struct imx_cfg_params_decode imx7ulp_cfg_decodes[] = {
IMX_CFG_PARAMS_DECODE(PIN_CONFIG_DRIVE_STRENGTH, BIT(6), 6),
IMX_CFG_PARAMS_DECODE(PIN_CONFIG_DRIVE_PUSH_PULL, BIT(5), 5),
IMX_CFG_PARAMS_DECODE(PIN_CONFIG_SLEW_RATE, BIT(2), 2),