[PATCH] constify rtc_class_ops: update drivers
Update RTC framework so that drivers can constify their method tables, moving them from ".data" to ".rodata". Then update the drivers. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
db621f174d
commit
ff8371ac9a
@ -207,7 +207,7 @@ static int max6902_set_time(struct device *dev, struct rtc_time *tm)
|
||||
return max6902_set_datetime(dev, tm);
|
||||
}
|
||||
|
||||
static struct rtc_class_ops max6902_rtc_ops = {
|
||||
static const struct rtc_class_ops max6902_rtc_ops = {
|
||||
.read_time = max6902_read_time,
|
||||
.set_time = max6902_set_time,
|
||||
};
|
||||
|
Reference in New Issue
Block a user