projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c994c0
)
rtc: rtc-ds1742: make of_device_id array const
author
Jingoo Han
<jg1.han@samsung.com>
Fri, 6 Jun 2014 21:35:54 +0000
(14:35 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 6 Jun 2014 23:08:07 +0000
(16:08 -0700)
Make of_device_id array const, because all OF functions handle it as
const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds1742.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/rtc/rtc-ds1742.c
b/drivers/rtc/rtc-ds1742.c
index 942103dac30f0bf575d8f5f03d0852bb1c80bc85..c6b2191a4128215795e4407e6b5b35e3860cee9f 100644
(file)
--- 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", },
{ }
};