From: Axel Lin <axel.lin@ingics.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>,
Hongzhou Yang <hongzhou.yang@mediatek.com>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>
Subject: [PATCH] pinctrl: mediatek: mt8135/mt8173: Constify of_device_id table
Date: Fri, 13 Mar 2015 14:44:43 +0800 [thread overview]
Message-ID: <1426229083.15007.1.camel@phoenix> (raw)
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
next reply other threads:[~2015-03-13 6:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 6:44 Axel Lin [this message]
2015-03-13 19:50 ` [PATCH] pinctrl: mediatek: mt8135/mt8173: Constify of_device_id table Hongzhou Yang
2015-03-18 12:09 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426229083.15007.1.camel@phoenix \
--to=axel.lin@ingics.com \
--cc=hongzhou.yang@mediatek.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).