linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] gpio: lpc32xx: Make of_device_id array const
@ 2014-06-03 12:09 Jingoo Han
  2014-06-03 12:10 ` [PATCH 2/2] gpio: pxa: " Jingoo Han
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jingoo Han @ 2014-06-03 12:09 UTC (permalink / raw)
  To: 'Linus Walleij'
  Cc: 'Alexandre Courbot', linux-gpio, 'Jingoo Han',
	'Roland Stigge'

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

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/gpio/gpio-lpc32xx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-lpc32xx.c b/drivers/gpio/gpio-lpc32xx.c
index 225344d..b9b9799 100644
--- a/drivers/gpio/gpio-lpc32xx.c
+++ b/drivers/gpio/gpio-lpc32xx.c
@@ -560,7 +560,7 @@ static int lpc32xx_gpio_probe(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id lpc32xx_gpio_of_match[] = {
+static const struct of_device_id lpc32xx_gpio_of_match[] = {
 	{ .compatible = "nxp,lpc3220-gpio", },
 	{ },
 };
-- 
1.7.10.4



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

end of thread, other threads:[~2014-06-12  7:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03 12:09 [PATCH 1/2] gpio: lpc32xx: Make of_device_id array const Jingoo Han
2014-06-03 12:10 ` [PATCH 2/2] gpio: pxa: " Jingoo Han
2014-06-04  3:28   ` Neil Zhang
2014-06-03 12:11 ` [PATCH 1/2] gpio: lpc32xx: " Roland Stigge
2014-06-12  7:37 ` 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).