Commit 86d64dce authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij

pinctrl: mediatek: mt8135/mt8173: Constify of_device_id table

Also make the table a bit compact.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarHongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 0206caa8
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment