pinctrl: mediatek: mt8135/mt8173: Constify of_device_id table
authorAxel Lin <axel.lin@ingics.com>
Fri, 13 Mar 2015 06:44:43 +0000 (14:44 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Mar 2015 12:09:37 +0000 (13:09 +0100)
Also make the table a bit compact.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt8135.c
drivers/pinctrl/mediatek/pinctrl-mt8173.c

index 1296d6d6fb139101db5041b35aff9f1206b32ba8..b7e91c1757686ec839efc3553f76395b9315c9ae 100644 (file)
@@ -347,11 +347,9 @@ static int mt8135_pinctrl_probe(struct platform_device *pdev)
        return mtk_pctrl_init(pdev, &mt8135_pinctrl_data);
 }
 
-static struct of_device_id mt8135_pctrl_match[] = {
-       {
-               .compatible = "mediatek,mt8135-pinctrl",
-       }, {
-       }
+static const struct of_device_id mt8135_pctrl_match[] = {
+       { .compatible = "mediatek,mt8135-pinctrl", },
+       { }
 };
 MODULE_DEVICE_TABLE(of, mt8135_pctrl_match);
 
index f07cafbcb170075f35b35e26ccc0ac9893678e90..46e4f6e7575e002ecdbb4157ca620c6160f8eab4 100644 (file)
@@ -427,11 +427,9 @@ static int mt8173_pinctrl_probe(struct platform_device *pdev)
        return mtk_pctrl_init(pdev, &mt8173_pinctrl_data);
 }
 
-static struct of_device_id mt8173_pctrl_match[] = {
-       {
-               .compatible = "mediatek,mt8173-pinctrl",
-       }, {
-       }
+static const struct of_device_id mt8173_pctrl_match[] = {
+       { .compatible = "mediatek,mt8173-pinctrl", },
+       { }
 };
 MODULE_DEVICE_TABLE(of, mt8173_pctrl_match);