pinctrl: imx: constify struct imx_pinctrl_soc_info
authorStefan Agner <stefan@agner.ch>
Sat, 6 Jan 2018 14:25:51 +0000 (15:25 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 11 Jan 2018 09:29:37 +0000 (10:29 +0100)
Now that imx_pinctrl_probe accepts const struct imx_pinctrl_soc_info
we can constify all declarations of struct imx_pinctrl_soc_info.

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>
drivers/pinctrl/freescale/pinctrl-imx25.c
drivers/pinctrl/freescale/pinctrl-imx35.c
drivers/pinctrl/freescale/pinctrl-imx50.c
drivers/pinctrl/freescale/pinctrl-imx51.c
drivers/pinctrl/freescale/pinctrl-imx53.c
drivers/pinctrl/freescale/pinctrl-imx6dl.c
drivers/pinctrl/freescale/pinctrl-imx6q.c
drivers/pinctrl/freescale/pinctrl-imx6sl.c
drivers/pinctrl/freescale/pinctrl-imx6sx.c
drivers/pinctrl/freescale/pinctrl-imx7ulp.c
drivers/pinctrl/freescale/pinctrl-vf610.c

index d7367fabe7123063564d474521453498f8288d83..db6d9d1382f979a624665b39f0cf8b6ab971e41c 100644 (file)
@@ -309,7 +309,7 @@ static const struct pinctrl_pin_desc imx25_pinctrl_pads[] = {
        IMX_PINCTRL_PIN(MX25_PAD_BOOT_MODE1),
 };
 
-static struct imx_pinctrl_soc_info imx25_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx25_pinctrl_info = {
        .pins = imx25_pinctrl_pads,
        .npins = ARRAY_SIZE(imx25_pinctrl_pads),
 };
index 6315ba6af431dc4cf208e921b6b75107b51a5442..6927946ae4b59b39daa2b95212c3c6518ac7ee3a 100644 (file)
@@ -999,7 +999,7 @@ static const struct pinctrl_pin_desc imx35_pinctrl_pads[] = {
        IMX_PINCTRL_PIN(MX35_PAD_TEST_MODE),
 };
 
-static struct imx_pinctrl_soc_info imx35_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx35_pinctrl_info = {
        .pins = imx35_pinctrl_pads,
        .npins = ARRAY_SIZE(imx35_pinctrl_pads),
 };
index 8e3a17df5c5da2a8220ae0cec87d81d1e162f400..eb349b97290f9a6dcdd6fedcd1d53dd133f44f65 100644 (file)
@@ -385,7 +385,7 @@ static const struct pinctrl_pin_desc imx50_pinctrl_pads[] = {
        IMX_PINCTRL_PIN(MX50_PAD_EIM_CRE),
 };
 
-static struct imx_pinctrl_soc_info imx50_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx50_pinctrl_info = {
        .pins = imx50_pinctrl_pads,
        .npins = ARRAY_SIZE(imx50_pinctrl_pads),
        .gpr_compatible = "fsl,imx50-iomuxc-gpr",
index eeac64ba270934feb727702555477fefc0784f49..49acd991b5fb3037323bedb3f72485139d98fd6a 100644 (file)
@@ -762,7 +762,7 @@ static const struct pinctrl_pin_desc imx51_pinctrl_pads[] = {
        IMX_PINCTRL_PIN(MX51_PAD_CSI1_MCLK),
 };
 
-static struct imx_pinctrl_soc_info imx51_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx51_pinctrl_info = {
        .pins = imx51_pinctrl_pads,
        .npins = ARRAY_SIZE(imx51_pinctrl_pads),
 };
index 46a9572f3473a763e5c7f3fcd06af22301effedb..6dd0c60eaea4dc83158e30100c13b4bb64b2e619 100644 (file)
@@ -448,7 +448,7 @@ static const struct pinctrl_pin_desc imx53_pinctrl_pads[] = {
        IMX_PINCTRL_PIN(MX53_PAD_GPIO_18),
 };
 
-static struct imx_pinctrl_soc_info imx53_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx53_pinctrl_info = {
        .pins = imx53_pinctrl_pads,
        .npins = ARRAY_SIZE(imx53_pinctrl_pads),
        .gpr_compatible = "fsl,imx53-iomuxc-gpr",
index 3f25ca5867cc60c9fcad2342210001de35a1a7d1..91b85fc01de8be3f2bf894c0d6422195bbda49fb 100644 (file)
@@ -457,7 +457,7 @@ static const struct pinctrl_pin_desc imx6dl_pinctrl_pads[] = {
        IMX_PINCTRL_PIN(MX6DL_PAD_SD4_DAT7),
 };
 
-static struct imx_pinctrl_soc_info imx6dl_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx6dl_pinctrl_info = {
        .pins = imx6dl_pinctrl_pads,
        .npins = ARRAY_SIZE(imx6dl_pinctrl_pads),
        .gpr_compatible = "fsl,imx6q-iomuxc-gpr",
index d61651c40458b8bbf1adc76285921918f9ab93df..5f653d69d0f51843f7406b267d42f26ac0a5dc5d 100644 (file)
@@ -460,7 +460,7 @@ static const struct pinctrl_pin_desc imx6q_pinctrl_pads[] = {
        IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT3),
 };
 
-static struct imx_pinctrl_soc_info imx6q_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx6q_pinctrl_info = {
        .pins = imx6q_pinctrl_pads,
        .npins = ARRAY_SIZE(imx6q_pinctrl_pads),
        .gpr_compatible = "fsl,imx6q-iomuxc-gpr",
index d023f6b006235ec2ffc803acc8158611b5b9de2b..1167dc273c045793247bed823ad1452b2a2a215f 100644 (file)
@@ -363,7 +363,7 @@ static const struct pinctrl_pin_desc imx6sl_pinctrl_pads[] = {
        IMX_PINCTRL_PIN(MX6SL_PAD_WDOG_B),
 };
 
-static struct imx_pinctrl_soc_info imx6sl_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx6sl_pinctrl_info = {
        .pins = imx6sl_pinctrl_pads,
        .npins = ARRAY_SIZE(imx6sl_pinctrl_pads),
        .gpr_compatible = "fsl,imx6sl-iomuxc-gpr",
index 898b781701e64162e6d7bbe300dc2473aba7ea5d..15ea56c75f687daddb5d1265d67e7cb308363725 100644 (file)
@@ -367,7 +367,7 @@ static const struct pinctrl_pin_desc imx6sx_pinctrl_pads[] = {
        IMX_PINCTRL_PIN(MX6SX_PAD_USB_H_STROBE),
 };
 
-static struct imx_pinctrl_soc_info imx6sx_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx6sx_pinctrl_info = {
        .pins = imx6sx_pinctrl_pads,
        .npins = ARRAY_SIZE(imx6sx_pinctrl_pads),
        .gpr_compatible = "fsl,imx6sx-iomuxc-gpr",
index 9161c984f57b2aece9890f69c6fffd037d04af97..0406d8b39e6ab4ba0f5f404aaa18870490b911c4 100644 (file)
@@ -324,7 +324,7 @@ static int imx7ulp_pmx_gpio_set_direction(struct pinctrl_dev *pctldev,
        return 0;
 }
 
-static struct imx_pinctrl_soc_info imx7ulp_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx7ulp_pinctrl_info = {
        .pins = imx7ulp_pinctrl_pads,
        .npins = ARRAY_SIZE(imx7ulp_pinctrl_pads),
        .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG,
index 42745c690be3556c6bef98492d4081d2add2d28f..c078f859ae15e7dcca2f93edce91672d96cb20f2 100644 (file)
@@ -318,7 +318,7 @@ static int vf610_pmx_gpio_set_direction(struct pinctrl_dev *pctldev,
        return 0;
 }
 
-static struct imx_pinctrl_soc_info vf610_pinctrl_info = {
+static const struct imx_pinctrl_soc_info vf610_pinctrl_info = {
        .pins = vf610_pinctrl_pads,
        .npins = ARRAY_SIZE(vf610_pinctrl_pads),
        .flags = SHARE_MUX_CONF_REG | ZERO_OFFSET_VALID,