public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] pinctrl: tegra124: Make of_device_id array const
@ 2014-08-11 14:02 Kiran Padwal
  2014-08-11 17:00 ` Stephen Warren
  2014-08-29  5:10 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Kiran Padwal @ 2014-08-11 14:02 UTC (permalink / raw)
  To: swarren, linus.walleij
  Cc: thierry.reding, kiran.padwal21, linux-tegra, linux-kernel

Make of_device_id array const, because all OF functions handle it as const.

Signed-off-by: Kiran Padwal <kiran.padwal21@gmail.com>
---
 drivers/pinctrl/pinctrl-tegra124.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-tegra124.c b/drivers/pinctrl/pinctrl-tegra124.c
index e80797e..cb3e596 100644
--- a/drivers/pinctrl/pinctrl-tegra124.c
+++ b/drivers/pinctrl/pinctrl-tegra124.c
@@ -1996,7 +1996,7 @@ static int tegra124_pinctrl_probe(struct platform_device *pdev)
 	return tegra_pinctrl_probe(pdev, &tegra124_pinctrl);
 }
 
-static struct of_device_id tegra124_pinctrl_of_match[] = {
+static const struct of_device_id tegra124_pinctrl_of_match[] = {
 	{ .compatible = "nvidia,tegra124-pinmux", },
 	{ },
 };
-- 
1.7.9.5


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

end of thread, other threads:[~2014-08-29  5:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 14:02 [PATCH 1/3] pinctrl: tegra124: Make of_device_id array const Kiran Padwal
2014-08-11 17:00 ` Stephen Warren
2014-08-29  5:10 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox