summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-03-13 14:44:43 +0800
committerLinus Walleij <linus.walleij@linaro.org>2015-03-18 13:09:37 +0100
commit86d64dce9eb5a927da9a8159519778dfbaf598e7 (patch)
treed2726c2a04b77ae2471a642ca1b47ad7c6ad110e /drivers/pinctrl
parent0206caa81cb7b416d7c19d56f83a89ecbe33f536 (diff)
downloadlinux-86d64dce9eb5a927da9a8159519778dfbaf598e7.tar.bz2
pinctrl: mediatek: mt8135/mt8173: Constify of_device_id table
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/mediatek/pinctrl-mt8135.c8
-rw-r--r--drivers/pinctrl/mediatek/pinctrl-mt8173.c8
2 files changed, 6 insertions, 10 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8135.c b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
index 1296d6d6fb13..b7e91c175768 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8135.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
@@ -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);
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8173.c b/drivers/pinctrl/mediatek/pinctrl-mt8173.c
index f07cafbcb170..46e4f6e7575e 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c
@@ -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);