projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d20357
)
rtc: rtc-hym8563: make of_device_id array const
author
Jingoo Han
<jg1.han@samsung.com>
Fri, 6 Jun 2014 21:35:55 +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>
Acked-by: Heiko Stbner <heiko@sntech.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-hym8563.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/rtc/rtc-hym8563.c
b/drivers/rtc/rtc-hym8563.c
index e5f13c4310feb368b5855269a043c88bc698da74..e3290abbb03e75fa97d9a1b1d2aac4b0786953e0 100644
(file)
--- a/
drivers/rtc/rtc-hym8563.c
+++ b/
drivers/rtc/rtc-hym8563.c
@@
-585,7
+585,7
@@
static const struct i2c_device_id hym8563_id[] = {
};
MODULE_DEVICE_TABLE(i2c, hym8563_id);
-static struct of_device_id hym8563_dt_idtable[] = {
+static
const
struct of_device_id hym8563_dt_idtable[] = {
{ .compatible = "haoyu,hym8563" },
{},
};