Commit 5dfe10b4 authored by Kiran Padwal's avatar Kiran Padwal Committed by Linus Walleij

pinctrl: Make of_device_id array const

Make of_device_id array const, because all OF functions handle it as
const.
Signed-off-by: default avatarKiran Padwal <kiran.padwal21@gmail.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f3ababa8
...@@ -272,7 +272,7 @@ static int imx23_pinctrl_probe(struct platform_device *pdev) ...@@ -272,7 +272,7 @@ static int imx23_pinctrl_probe(struct platform_device *pdev)
return mxs_pinctrl_probe(pdev, &imx23_pinctrl_data); return mxs_pinctrl_probe(pdev, &imx23_pinctrl_data);
} }
static struct of_device_id imx23_pinctrl_of_match[] = { static const struct of_device_id imx23_pinctrl_of_match[] = {
{ .compatible = "fsl,imx23-pinctrl", }, { .compatible = "fsl,imx23-pinctrl", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -315,7 +315,7 @@ static struct imx_pinctrl_soc_info imx25_pinctrl_info = { ...@@ -315,7 +315,7 @@ static struct imx_pinctrl_soc_info imx25_pinctrl_info = {
.npins = ARRAY_SIZE(imx25_pinctrl_pads), .npins = ARRAY_SIZE(imx25_pinctrl_pads),
}; };
static struct of_device_id imx25_pinctrl_of_match[] = { static const struct of_device_id imx25_pinctrl_of_match[] = {
{ .compatible = "fsl,imx25-iomuxc", }, { .compatible = "fsl,imx25-iomuxc", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -389,7 +389,7 @@ static struct imx1_pinctrl_soc_info imx27_pinctrl_info = { ...@@ -389,7 +389,7 @@ static struct imx1_pinctrl_soc_info imx27_pinctrl_info = {
.npins = ARRAY_SIZE(imx27_pinctrl_pads), .npins = ARRAY_SIZE(imx27_pinctrl_pads),
}; };
static struct of_device_id imx27_pinctrl_of_match[] = { static const struct of_device_id imx27_pinctrl_of_match[] = {
{ .compatible = "fsl,imx27-iomuxc", }, { .compatible = "fsl,imx27-iomuxc", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -388,7 +388,7 @@ static int imx28_pinctrl_probe(struct platform_device *pdev) ...@@ -388,7 +388,7 @@ static int imx28_pinctrl_probe(struct platform_device *pdev)
return mxs_pinctrl_probe(pdev, &imx28_pinctrl_data); return mxs_pinctrl_probe(pdev, &imx28_pinctrl_data);
} }
static struct of_device_id imx28_pinctrl_of_match[] = { static const struct of_device_id imx28_pinctrl_of_match[] = {
{ .compatible = "fsl,imx28-pinctrl", }, { .compatible = "fsl,imx28-pinctrl", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -1005,7 +1005,7 @@ static struct imx_pinctrl_soc_info imx35_pinctrl_info = { ...@@ -1005,7 +1005,7 @@ static struct imx_pinctrl_soc_info imx35_pinctrl_info = {
.npins = ARRAY_SIZE(imx35_pinctrl_pads), .npins = ARRAY_SIZE(imx35_pinctrl_pads),
}; };
static struct of_device_id imx35_pinctrl_of_match[] = { static const struct of_device_id imx35_pinctrl_of_match[] = {
{ .compatible = "fsl,imx35-iomuxc", }, { .compatible = "fsl,imx35-iomuxc", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -391,7 +391,7 @@ static struct imx_pinctrl_soc_info imx50_pinctrl_info = { ...@@ -391,7 +391,7 @@ static struct imx_pinctrl_soc_info imx50_pinctrl_info = {
.npins = ARRAY_SIZE(imx50_pinctrl_pads), .npins = ARRAY_SIZE(imx50_pinctrl_pads),
}; };
static struct of_device_id imx50_pinctrl_of_match[] = { static const struct of_device_id imx50_pinctrl_of_match[] = {
{ .compatible = "fsl,imx50-iomuxc", }, { .compatible = "fsl,imx50-iomuxc", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -768,7 +768,7 @@ static struct imx_pinctrl_soc_info imx51_pinctrl_info = { ...@@ -768,7 +768,7 @@ static struct imx_pinctrl_soc_info imx51_pinctrl_info = {
.npins = ARRAY_SIZE(imx51_pinctrl_pads), .npins = ARRAY_SIZE(imx51_pinctrl_pads),
}; };
static struct of_device_id imx51_pinctrl_of_match[] = { static const struct of_device_id imx51_pinctrl_of_match[] = {
{ .compatible = "fsl,imx51-iomuxc", }, { .compatible = "fsl,imx51-iomuxc", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -454,7 +454,7 @@ static struct imx_pinctrl_soc_info imx53_pinctrl_info = { ...@@ -454,7 +454,7 @@ static struct imx_pinctrl_soc_info imx53_pinctrl_info = {
.npins = ARRAY_SIZE(imx53_pinctrl_pads), .npins = ARRAY_SIZE(imx53_pinctrl_pads),
}; };
static struct of_device_id imx53_pinctrl_of_match[] = { static const struct of_device_id imx53_pinctrl_of_match[] = {
{ .compatible = "fsl,imx53-iomuxc", }, { .compatible = "fsl,imx53-iomuxc", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -460,7 +460,7 @@ static struct imx_pinctrl_soc_info imx6dl_pinctrl_info = { ...@@ -460,7 +460,7 @@ static struct imx_pinctrl_soc_info imx6dl_pinctrl_info = {
.npins = ARRAY_SIZE(imx6dl_pinctrl_pads), .npins = ARRAY_SIZE(imx6dl_pinctrl_pads),
}; };
static struct of_device_id imx6dl_pinctrl_of_match[] = { static const struct of_device_id imx6dl_pinctrl_of_match[] = {
{ .compatible = "fsl,imx6dl-iomuxc", }, { .compatible = "fsl,imx6dl-iomuxc", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -466,7 +466,7 @@ static struct imx_pinctrl_soc_info imx6q_pinctrl_info = { ...@@ -466,7 +466,7 @@ static struct imx_pinctrl_soc_info imx6q_pinctrl_info = {
.npins = ARRAY_SIZE(imx6q_pinctrl_pads), .npins = ARRAY_SIZE(imx6q_pinctrl_pads),
}; };
static struct of_device_id imx6q_pinctrl_of_match[] = { static const struct of_device_id imx6q_pinctrl_of_match[] = {
{ .compatible = "fsl,imx6q-iomuxc", }, { .compatible = "fsl,imx6q-iomuxc", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -366,7 +366,7 @@ static struct imx_pinctrl_soc_info imx6sl_pinctrl_info = { ...@@ -366,7 +366,7 @@ static struct imx_pinctrl_soc_info imx6sl_pinctrl_info = {
.npins = ARRAY_SIZE(imx6sl_pinctrl_pads), .npins = ARRAY_SIZE(imx6sl_pinctrl_pads),
}; };
static struct of_device_id imx6sl_pinctrl_of_match[] = { static const struct of_device_id imx6sl_pinctrl_of_match[] = {
{ .compatible = "fsl,imx6sl-iomuxc", }, { .compatible = "fsl,imx6sl-iomuxc", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -370,7 +370,7 @@ static struct imx_pinctrl_soc_info imx6sx_pinctrl_info = { ...@@ -370,7 +370,7 @@ static struct imx_pinctrl_soc_info imx6sx_pinctrl_info = {
.npins = ARRAY_SIZE(imx6sx_pinctrl_pads), .npins = ARRAY_SIZE(imx6sx_pinctrl_pads),
}; };
static struct of_device_id imx6sx_pinctrl_of_match[] = { static const struct of_device_id imx6sx_pinctrl_of_match[] = {
{ .compatible = "fsl,imx6sx-iomuxc", }, { .compatible = "fsl,imx6sx-iomuxc", },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -1850,7 +1850,7 @@ static int tegra114_pinctrl_probe(struct platform_device *pdev) ...@@ -1850,7 +1850,7 @@ static int tegra114_pinctrl_probe(struct platform_device *pdev)
return tegra_pinctrl_probe(pdev, &tegra114_pinctrl); return tegra_pinctrl_probe(pdev, &tegra114_pinctrl);
} }
static struct of_device_id tegra114_pinctrl_of_match[] = { static const struct of_device_id tegra114_pinctrl_of_match[] = {
{ .compatible = "nvidia,tegra114-pinmux", }, { .compatible = "nvidia,tegra114-pinmux", },
{ }, { },
}; };
......
...@@ -1996,7 +1996,7 @@ static int tegra124_pinctrl_probe(struct platform_device *pdev) ...@@ -1996,7 +1996,7 @@ static int tegra124_pinctrl_probe(struct platform_device *pdev)
return tegra_pinctrl_probe(pdev, &tegra124_pinctrl); return tegra_pinctrl_probe(pdev, &tegra124_pinctrl);
} }
static struct of_device_id tegra124_pinctrl_of_match[] = { static const struct of_device_id tegra124_pinctrl_of_match[] = {
{ .compatible = "nvidia,tegra124-pinmux", }, { .compatible = "nvidia,tegra124-pinmux", },
{ }, { },
}; };
......
...@@ -2228,7 +2228,7 @@ static int tegra20_pinctrl_probe(struct platform_device *pdev) ...@@ -2228,7 +2228,7 @@ static int tegra20_pinctrl_probe(struct platform_device *pdev)
return tegra_pinctrl_probe(pdev, &tegra20_pinctrl); return tegra_pinctrl_probe(pdev, &tegra20_pinctrl);
} }
static struct of_device_id tegra20_pinctrl_of_match[] = { static const struct of_device_id tegra20_pinctrl_of_match[] = {
{ .compatible = "nvidia,tegra20-pinmux", }, { .compatible = "nvidia,tegra20-pinmux", },
{ }, { },
}; };
......
...@@ -2484,7 +2484,7 @@ static int tegra30_pinctrl_probe(struct platform_device *pdev) ...@@ -2484,7 +2484,7 @@ static int tegra30_pinctrl_probe(struct platform_device *pdev)
return tegra_pinctrl_probe(pdev, &tegra30_pinctrl); return tegra_pinctrl_probe(pdev, &tegra30_pinctrl);
} }
static struct of_device_id tegra30_pinctrl_of_match[] = { static const struct of_device_id tegra30_pinctrl_of_match[] = {
{ .compatible = "nvidia,tegra30-pinmux", }, { .compatible = "nvidia,tegra30-pinmux", },
{ }, { },
}; };
......
...@@ -2692,7 +2692,7 @@ static struct spear_pinctrl_machdata spear1310_machdata = { ...@@ -2692,7 +2692,7 @@ static struct spear_pinctrl_machdata spear1310_machdata = {
.modes_supported = false, .modes_supported = false,
}; };
static struct of_device_id spear1310_pinctrl_of_match[] = { static const struct of_device_id spear1310_pinctrl_of_match[] = {
{ {
.compatible = "st,spear1310-pinmux", .compatible = "st,spear1310-pinmux",
}, },
......
...@@ -2008,7 +2008,7 @@ static struct spear_pinctrl_machdata spear1340_machdata = { ...@@ -2008,7 +2008,7 @@ static struct spear_pinctrl_machdata spear1340_machdata = {
.modes_supported = false, .modes_supported = false,
}; };
static struct of_device_id spear1340_pinctrl_of_match[] = { static const struct of_device_id spear1340_pinctrl_of_match[] = {
{ {
.compatible = "st,spear1340-pinmux", .compatible = "st,spear1340-pinmux",
}, },
......
...@@ -646,7 +646,7 @@ static struct spear_function *spear300_functions[] = { ...@@ -646,7 +646,7 @@ static struct spear_function *spear300_functions[] = {
&gpio1_function, &gpio1_function,
}; };
static struct of_device_id spear300_pinctrl_of_match[] = { static const struct of_device_id spear300_pinctrl_of_match[] = {
{ {
.compatible = "st,spear300-pinmux", .compatible = "st,spear300-pinmux",
}, },
......
...@@ -371,7 +371,7 @@ static struct spear_function *spear310_functions[] = { ...@@ -371,7 +371,7 @@ static struct spear_function *spear310_functions[] = {
&tdm_function, &tdm_function,
}; };
static struct of_device_id spear310_pinctrl_of_match[] = { static const struct of_device_id spear310_pinctrl_of_match[] = {
{ {
.compatible = "st,spear310-pinmux", .compatible = "st,spear310-pinmux",
}, },
......
...@@ -3410,7 +3410,7 @@ static struct spear_function *spear320_functions[] = { ...@@ -3410,7 +3410,7 @@ static struct spear_function *spear320_functions[] = {
&i2c2_function, &i2c2_function,
}; };
static struct of_device_id spear320_pinctrl_of_match[] = { static const struct of_device_id spear320_pinctrl_of_match[] = {
{ {
.compatible = "st,spear320-pinmux", .compatible = "st,spear320-pinmux",
}, },
......
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