Commit 7c017687 authored by Stefan Agner's avatar Stefan Agner Committed by Linus Walleij

pinctrl: imx: constify struct imx_pinctrl_soc_info

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: default avatarStefan Agner <stefan@agner.ch>
Acked-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 73720775
...@@ -309,7 +309,7 @@ static const struct pinctrl_pin_desc imx25_pinctrl_pads[] = { ...@@ -309,7 +309,7 @@ static const struct pinctrl_pin_desc imx25_pinctrl_pads[] = {
IMX_PINCTRL_PIN(MX25_PAD_BOOT_MODE1), 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, .pins = imx25_pinctrl_pads,
.npins = ARRAY_SIZE(imx25_pinctrl_pads), .npins = ARRAY_SIZE(imx25_pinctrl_pads),
}; };
......
...@@ -999,7 +999,7 @@ static const struct pinctrl_pin_desc imx35_pinctrl_pads[] = { ...@@ -999,7 +999,7 @@ static const struct pinctrl_pin_desc imx35_pinctrl_pads[] = {
IMX_PINCTRL_PIN(MX35_PAD_TEST_MODE), 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, .pins = imx35_pinctrl_pads,
.npins = ARRAY_SIZE(imx35_pinctrl_pads), .npins = ARRAY_SIZE(imx35_pinctrl_pads),
}; };
......
...@@ -385,7 +385,7 @@ static const struct pinctrl_pin_desc imx50_pinctrl_pads[] = { ...@@ -385,7 +385,7 @@ static const struct pinctrl_pin_desc imx50_pinctrl_pads[] = {
IMX_PINCTRL_PIN(MX50_PAD_EIM_CRE), 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, .pins = imx50_pinctrl_pads,
.npins = ARRAY_SIZE(imx50_pinctrl_pads), .npins = ARRAY_SIZE(imx50_pinctrl_pads),
.gpr_compatible = "fsl,imx50-iomuxc-gpr", .gpr_compatible = "fsl,imx50-iomuxc-gpr",
......
...@@ -762,7 +762,7 @@ static const struct pinctrl_pin_desc imx51_pinctrl_pads[] = { ...@@ -762,7 +762,7 @@ static const struct pinctrl_pin_desc imx51_pinctrl_pads[] = {
IMX_PINCTRL_PIN(MX51_PAD_CSI1_MCLK), 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, .pins = imx51_pinctrl_pads,
.npins = ARRAY_SIZE(imx51_pinctrl_pads), .npins = ARRAY_SIZE(imx51_pinctrl_pads),
}; };
......
...@@ -448,7 +448,7 @@ static const struct pinctrl_pin_desc imx53_pinctrl_pads[] = { ...@@ -448,7 +448,7 @@ static const struct pinctrl_pin_desc imx53_pinctrl_pads[] = {
IMX_PINCTRL_PIN(MX53_PAD_GPIO_18), 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, .pins = imx53_pinctrl_pads,
.npins = ARRAY_SIZE(imx53_pinctrl_pads), .npins = ARRAY_SIZE(imx53_pinctrl_pads),
.gpr_compatible = "fsl,imx53-iomuxc-gpr", .gpr_compatible = "fsl,imx53-iomuxc-gpr",
......
...@@ -457,7 +457,7 @@ static const struct pinctrl_pin_desc imx6dl_pinctrl_pads[] = { ...@@ -457,7 +457,7 @@ static const struct pinctrl_pin_desc imx6dl_pinctrl_pads[] = {
IMX_PINCTRL_PIN(MX6DL_PAD_SD4_DAT7), 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, .pins = imx6dl_pinctrl_pads,
.npins = ARRAY_SIZE(imx6dl_pinctrl_pads), .npins = ARRAY_SIZE(imx6dl_pinctrl_pads),
.gpr_compatible = "fsl,imx6q-iomuxc-gpr", .gpr_compatible = "fsl,imx6q-iomuxc-gpr",
......
...@@ -460,7 +460,7 @@ static const struct pinctrl_pin_desc imx6q_pinctrl_pads[] = { ...@@ -460,7 +460,7 @@ static const struct pinctrl_pin_desc imx6q_pinctrl_pads[] = {
IMX_PINCTRL_PIN(MX6Q_PAD_SD2_DAT3), 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, .pins = imx6q_pinctrl_pads,
.npins = ARRAY_SIZE(imx6q_pinctrl_pads), .npins = ARRAY_SIZE(imx6q_pinctrl_pads),
.gpr_compatible = "fsl,imx6q-iomuxc-gpr", .gpr_compatible = "fsl,imx6q-iomuxc-gpr",
......
...@@ -363,7 +363,7 @@ static const struct pinctrl_pin_desc imx6sl_pinctrl_pads[] = { ...@@ -363,7 +363,7 @@ static const struct pinctrl_pin_desc imx6sl_pinctrl_pads[] = {
IMX_PINCTRL_PIN(MX6SL_PAD_WDOG_B), 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, .pins = imx6sl_pinctrl_pads,
.npins = ARRAY_SIZE(imx6sl_pinctrl_pads), .npins = ARRAY_SIZE(imx6sl_pinctrl_pads),
.gpr_compatible = "fsl,imx6sl-iomuxc-gpr", .gpr_compatible = "fsl,imx6sl-iomuxc-gpr",
......
...@@ -367,7 +367,7 @@ static const struct pinctrl_pin_desc imx6sx_pinctrl_pads[] = { ...@@ -367,7 +367,7 @@ static const struct pinctrl_pin_desc imx6sx_pinctrl_pads[] = {
IMX_PINCTRL_PIN(MX6SX_PAD_USB_H_STROBE), 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, .pins = imx6sx_pinctrl_pads,
.npins = ARRAY_SIZE(imx6sx_pinctrl_pads), .npins = ARRAY_SIZE(imx6sx_pinctrl_pads),
.gpr_compatible = "fsl,imx6sx-iomuxc-gpr", .gpr_compatible = "fsl,imx6sx-iomuxc-gpr",
......
...@@ -324,7 +324,7 @@ static int imx7ulp_pmx_gpio_set_direction(struct pinctrl_dev *pctldev, ...@@ -324,7 +324,7 @@ static int imx7ulp_pmx_gpio_set_direction(struct pinctrl_dev *pctldev,
return 0; 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, .pins = imx7ulp_pinctrl_pads,
.npins = ARRAY_SIZE(imx7ulp_pinctrl_pads), .npins = ARRAY_SIZE(imx7ulp_pinctrl_pads),
.flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG, .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG,
......
...@@ -318,7 +318,7 @@ static int vf610_pmx_gpio_set_direction(struct pinctrl_dev *pctldev, ...@@ -318,7 +318,7 @@ static int vf610_pmx_gpio_set_direction(struct pinctrl_dev *pctldev,
return 0; 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, .pins = vf610_pinctrl_pads,
.npins = ARRAY_SIZE(vf610_pinctrl_pads), .npins = ARRAY_SIZE(vf610_pinctrl_pads),
.flags = SHARE_MUX_CONF_REG | ZERO_OFFSET_VALID, .flags = SHARE_MUX_CONF_REG | ZERO_OFFSET_VALID,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment