linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: mediatek: mt8135/mt8173: Constify of_device_id table
@ 2015-03-13  6:44 Axel Lin
  2015-03-13 19:50 ` Hongzhou Yang
  2015-03-18 12:09 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2015-03-13  6:44 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Matthias Brugger, Hongzhou Yang, linux-gpio@vger.kernel.org

Also make the table a bit compact.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/pinctrl/mediatek/pinctrl-mt8135.c | 8 +++-----
 drivers/pinctrl/mediatek/pinctrl-mt8173.c | 8 +++-----
 2 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8135.c b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
index 1296d6d..b7e91c1 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8135.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
@@ -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);
 
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8173.c b/drivers/pinctrl/mediatek/pinctrl-mt8173.c
index f07cafb..46e4f6e 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c
@@ -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);
 
-- 
1.9.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-18 12:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-13  6:44 [PATCH] pinctrl: mediatek: mt8135/mt8173: Constify of_device_id table Axel Lin
2015-03-13 19:50 ` Hongzhou Yang
2015-03-18 12:09 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).