]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: Make of_device_id array const
authorKiran Padwal <kiran.padwal21@gmail.com>
Mon, 11 Aug 2014 11:17:50 +0000 (16:47 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 29 Aug 2014 05:13:04 +0000 (07:13 +0200)
Make of_device_id array const, because all OF functions handle it as
const.

Signed-off-by: Kiran Padwal <kiran.padwal21@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
21 files changed:
drivers/pinctrl/pinctrl-imx23.c
drivers/pinctrl/pinctrl-imx25.c
drivers/pinctrl/pinctrl-imx27.c
drivers/pinctrl/pinctrl-imx28.c
drivers/pinctrl/pinctrl-imx35.c
drivers/pinctrl/pinctrl-imx50.c
drivers/pinctrl/pinctrl-imx51.c
drivers/pinctrl/pinctrl-imx53.c
drivers/pinctrl/pinctrl-imx6dl.c
drivers/pinctrl/pinctrl-imx6q.c
drivers/pinctrl/pinctrl-imx6sl.c
drivers/pinctrl/pinctrl-imx6sx.c
drivers/pinctrl/pinctrl-tegra114.c
drivers/pinctrl/pinctrl-tegra124.c
drivers/pinctrl/pinctrl-tegra20.c
drivers/pinctrl/pinctrl-tegra30.c
drivers/pinctrl/spear/pinctrl-spear1310.c
drivers/pinctrl/spear/pinctrl-spear1340.c
drivers/pinctrl/spear/pinctrl-spear300.c
drivers/pinctrl/spear/pinctrl-spear310.c
drivers/pinctrl/spear/pinctrl-spear320.c

index e76d75c9d1ba5635dbbddf70fc6c53a0c9898afa..df79096becb00c28ef5bad06ff6f511c4ec0c212 100644 (file)
@@ -272,7 +272,7 @@ static int imx23_pinctrl_probe(struct platform_device *pdev)
        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", },
        { /* sentinel */ }
 };
index 1aae1b61c4dc26c42a899fea5de866b9fd5b2428..550e6d77ac2b645aea23b6f76b017644c1b17104 100644 (file)
@@ -315,7 +315,7 @@ static struct imx_pinctrl_soc_info imx25_pinctrl_info = {
        .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", },
        { /* sentinel */ }
 };
index f8dfefb6996818bfc82635bfd18130c650c4d498..945eccadea7480ff319f3f5b2e83f7cf56713f6d 100644 (file)
@@ -389,7 +389,7 @@ static struct imx1_pinctrl_soc_info imx27_pinctrl_info = {
        .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", },
        { /* sentinel */ }
 };
index 79c9c8d296af8b1e67e5c05c2e7963b4307c8c24..3bd45da2122943bd5c6a633ed61b1ae4aadec34c 100644 (file)
@@ -388,7 +388,7 @@ static int imx28_pinctrl_probe(struct platform_device *pdev)
        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", },
        { /* sentinel */ }
 };
index 278a04ae8940acd4b1abc09b70b2d1cd57dbb534..6bfbcd0112c1d305ac380239ddbba160fa6a3eda 100644 (file)
@@ -1005,7 +1005,7 @@ static struct imx_pinctrl_soc_info imx35_pinctrl_info = {
        .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", },
        { /* sentinel */ }
 };
index b06feed1b038b69db9f0fd53fc9217e7796e7636..e8bd604ab1476be3cc5e4121c8d0379fe81af0b0 100644 (file)
@@ -391,7 +391,7 @@ static struct imx_pinctrl_soc_info imx50_pinctrl_info = {
        .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", },
        { /* sentinel */ }
 };
index 19ab182bef6172ba41ac10b13bf8c11e06fdcc95..b818051db7c9af14f53693e357970c0f41d94df0 100644 (file)
@@ -768,7 +768,7 @@ static struct imx_pinctrl_soc_info imx51_pinctrl_info = {
        .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", },
        { /* sentinel */ }
 };
index f8d45c4cfde756f6ae60e543989752e3033666ab..1884d53cf750708ebb9265fcff2f2921e181f84d 100644 (file)
@@ -454,7 +454,7 @@ static struct imx_pinctrl_soc_info imx53_pinctrl_info = {
        .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", },
        { /* sentinel */ }
 };
index db2a1489bd995c7cf93503a4eeda681355b8fcec..656c4b08cc2ecd5a4d93deca989dc45674c6ef83 100644 (file)
@@ -460,7 +460,7 @@ static struct imx_pinctrl_soc_info imx6dl_pinctrl_info = {
        .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", },
        { /* sentinel */ }
 };
index 8eb5ac1bd5f695016a0f52576cf36a10ad4b5986..59bb5b4ec0f629bcb395333ce8d7bbe60853eebf 100644 (file)
@@ -466,7 +466,7 @@ static struct imx_pinctrl_soc_info imx6q_pinctrl_info = {
        .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", },
        { /* sentinel */ }
 };
index f21b7389df3c2771127e381030151d124782de36..fa76d6cb15cfd53f2a3c429cd70a100e1d7d2dc1 100644 (file)
@@ -366,7 +366,7 @@ static struct imx_pinctrl_soc_info imx6sl_pinctrl_info = {
        .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", },
        { /* sentinel */ }
 };
index 09758a56b9df262078fa45168349fcec59a2e37e..840344c8580da0e9d583d49c87175e08fc3ad3b3 100644 (file)
@@ -370,7 +370,7 @@ static struct imx_pinctrl_soc_info imx6sx_pinctrl_info = {
        .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", },
        { /* sentinel */ }
 };
index 33614baab4c0a3b9686e0e455392b3fe8fde9588..a3db85b0b75f565bd0ee56c285d16b7060e1edf4 100644 (file)
@@ -1850,7 +1850,7 @@ static int tegra114_pinctrl_probe(struct platform_device *pdev)
        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", },
        { },
 };
index e80797e200177e96f69c330a36a2cbf522147257..cb3e596cade1cae9d9c4bae534e7c0782ffd2c10 100644 (file)
@@ -1996,7 +1996,7 @@ static int tegra124_pinctrl_probe(struct platform_device *pdev)
        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", },
        { },
 };
index 7563ebc9c791a7491f058cc74cda6a54cd24f6db..c9805d2e71b0a2b52fab390873c30d489cc683c9 100644 (file)
@@ -2228,7 +2228,7 @@ static int tegra20_pinctrl_probe(struct platform_device *pdev)
        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", },
        { },
 };
index fe2d2cf78ad9f511b7de3074926c2b72f9cc9acd..e7b72e916558ce76b585f5f49c4f9468293b6be7 100644 (file)
@@ -2484,7 +2484,7 @@ static int tegra30_pinctrl_probe(struct platform_device *pdev)
        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", },
        { },
 };
index 1a8bbfec60ca7748242701c687b22b8d93b43b99..6d57d43ab640c3a91980f0a68523af010f40d4c6 100644 (file)
@@ -2692,7 +2692,7 @@ static struct spear_pinctrl_machdata spear1310_machdata = {
        .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",
        },
index 873966e2b99f2ebbe64c6a9921fe7a5fa9a497a2..d243e43e7f6dac77962ba6ed51945b56b3cdf6a8 100644 (file)
@@ -2008,7 +2008,7 @@ static struct spear_pinctrl_machdata spear1340_machdata = {
        .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",
        },
index 4777c0d0e730928e0f04c6f7e8e48cb240f0244e..9db83e9ee18c7963131577c977984e41ae44cd98 100644 (file)
@@ -646,7 +646,7 @@ static struct spear_function *spear300_functions[] = {
        &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",
        },
index ed1d3608f486b5add83744d2d9a54dc04055bd46..db775a414b7a373a22066a56f379b944aa759f8a 100644 (file)
@@ -371,7 +371,7 @@ static struct spear_function *spear310_functions[] = {
        &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",
        },
index b8e290a8c8c994fe8394ce21b593ab4199d03017..80fbd68e17bc56deb68f2c0303630d3f005321b5 100644 (file)
@@ -3410,7 +3410,7 @@ static struct spear_function *spear320_functions[] = {
        &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",
        },