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:
parent
0206caa81c
commit
86d64dce9e
2 changed files with 6 additions and 10 deletions
|
@ -347,11 +347,9 @@ static int mt8135_pinctrl_probe(struct platform_device *pdev)
|
||||||
return mtk_pctrl_init(pdev, &mt8135_pinctrl_data);
|
return mtk_pctrl_init(pdev, &mt8135_pinctrl_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_device_id mt8135_pctrl_match[] = {
|
static const struct of_device_id mt8135_pctrl_match[] = {
|
||||||
{
|
{ .compatible = "mediatek,mt8135-pinctrl", },
|
||||||
.compatible = "mediatek,mt8135-pinctrl",
|
{ }
|
||||||
}, {
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, mt8135_pctrl_match);
|
MODULE_DEVICE_TABLE(of, mt8135_pctrl_match);
|
||||||
|
|
||||||
|
|
|
@ -427,11 +427,9 @@ static int mt8173_pinctrl_probe(struct platform_device *pdev)
|
||||||
return mtk_pctrl_init(pdev, &mt8173_pinctrl_data);
|
return mtk_pctrl_init(pdev, &mt8173_pinctrl_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_device_id mt8173_pctrl_match[] = {
|
static const struct of_device_id mt8173_pctrl_match[] = {
|
||||||
{
|
{ .compatible = "mediatek,mt8173-pinctrl", },
|
||||||
.compatible = "mediatek,mt8173-pinctrl",
|
{ }
|
||||||
}, {
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, mt8173_pctrl_match);
|
MODULE_DEVICE_TABLE(of, mt8173_pctrl_match);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue