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