public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] rtc: rtc-ds1742: Make of_device_id array const
@ 2014-05-07  8:31 Jingoo Han
  2014-05-07  8:34 ` [PATCH 2/5] rtc: rtc-hym8563: " Jingoo Han
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jingoo Han @ 2014-05-07  8:31 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo', rtc-linux,
	'Jingoo Han', 'Alexander Shiyan'

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

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

diff --git a/drivers/rtc/rtc-ds1742.c b/drivers/rtc/rtc-ds1742.c
index 942103d..c6b2191 100644
--- a/drivers/rtc/rtc-ds1742.c
+++ b/drivers/rtc/rtc-ds1742.c
@@ -219,7 +219,7 @@ static int ds1742_rtc_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct of_device_id __maybe_unused ds1742_rtc_of_match[] = {
+static const struct of_device_id __maybe_unused ds1742_rtc_of_match[] = {
 	{ .compatible = "maxim,ds1742", },
 	{ }
 };
-- 
1.7.10.4



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

end of thread, other threads:[~2014-05-07  9:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-07  8:31 [PATCH 1/5] rtc: rtc-ds1742: Make of_device_id array const Jingoo Han
2014-05-07  8:34 ` [PATCH 2/5] rtc: rtc-hym8563: " Jingoo Han
2014-05-07  9:15   ` Heiko Stübner
2014-05-07  8:35 ` [PATCH 3/5] rtc: isl12057: " Jingoo Han
2014-05-07  8:36 ` [PATCH 4/5] rtc: rtc-mv: " Jingoo Han
2014-05-07  8:37 ` [PATCH 5/5] rtc: rtc-palmas: " Jingoo Han

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