projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rtc: constify rtc_class_ops structures
[cascardo/linux.git]
/
drivers
/
rtc
/
rtc-ds1302.c
diff --git
a/drivers/rtc/rtc-ds1302.c
b/drivers/rtc/rtc-ds1302.c
index
f5dd09f
..
0ec4be6
100644
(file)
--- a/
drivers/rtc/rtc-ds1302.c
+++ b/
drivers/rtc/rtc-ds1302.c
@@
-102,7
+102,7
@@
static int ds1302_rtc_get_time(struct device *dev, struct rtc_time *time)
return rtc_valid_tm(time);
}
-static struct rtc_class_ops ds1302_rtc_ops = {
+static
const
struct rtc_class_ops ds1302_rtc_ops = {
.read_time = ds1302_rtc_get_time,
.set_time = ds1302_rtc_set_time,
};