[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
@@ -23,7 +23,7 @@ static int rtc_proc_show(struct seq_file *seq, void *offset)
|
||||
{
|
||||
int err;
|
||||
struct class_device *class_dev = seq->private;
|
||||
struct rtc_class_ops *ops = to_rtc_device(class_dev)->ops;
|
||||
const struct rtc_class_ops *ops = to_rtc_device(class_dev)->ops;
|
||||
struct rtc_wkalrm alrm;
|
||||
struct rtc_time tm;
|
||||
|
||||
|
Reference in New Issue
Block a user