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>
This commit is contained in:
Axel Lin 2015-03-13 14:44:43 +08:00 committed by Linus Walleij
parent 0206caa81c
commit 86d64dce9e
2 changed files with 6 additions and 10 deletions

View 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);

View 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);