summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/mediatek
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-16 20:59:09 +0100
committerLinus Walleij <linus.walleij@linaro.org>2015-03-27 09:58:35 +0100
commitbaa9946e32f9f26e740721c1f972de87c095baa9 (patch)
treef3c15cccc5b04181657e6e1328e331b815117b5a /drivers/pinctrl/mediatek
parent4024efb4047df0f317065571bd6ee9de3ab79512 (diff)
pinctrl: constify of_device_id array
of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by: Fabian Frederick <fabf@skynet.be> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Patrice Chotard <patrice.chotard@st.com> Acked-by: Maxime Coquelin <maxime.coquelin@st.com> Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com> Acked-by: Lee Jones <lee@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek')
-rw-r--r--drivers/pinctrl/mediatek/pinctrl-mt8135.c4
-rw-r--r--drivers/pinctrl/mediatek/pinctrl-mt8173.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8135.c b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
index b7e91c175768..f1e1e187ce96 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8135.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
@@ -348,7 +348,9 @@ static int mt8135_pinctrl_probe(struct platform_device *pdev)
}
static const struct of_device_id mt8135_pctrl_match[] = {
- { .compatible = "mediatek,mt8135-pinctrl", },
+ {
+ .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 46e4f6e7575e..412ea84836a1 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c
@@ -428,7 +428,9 @@ static int mt8173_pinctrl_probe(struct platform_device *pdev)
}
static const struct of_device_id mt8173_pctrl_match[] = {
- { .compatible = "mediatek,mt8173-pinctrl", },
+ {
+ .compatible = "mediatek,mt8173-pinctrl",
+ },
{ }
};
MODULE_DEVICE_TABLE(of, mt8173_pctrl_match);