mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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:
parent
db621f174d
commit
ff8371ac9a
24 changed files with 26 additions and 26 deletions
|
@ -141,7 +141,7 @@ struct rtc_device
|
|||
int id;
|
||||
char name[RTC_DEVICE_NAME_SIZE];
|
||||
|
||||
struct rtc_class_ops *ops;
|
||||
const struct rtc_class_ops *ops;
|
||||
struct mutex ops_lock;
|
||||
|
||||
struct class_device *rtc_dev;
|
||||
|
@ -172,7 +172,7 @@ struct rtc_device
|
|||
|
||||
extern struct rtc_device *rtc_device_register(const char *name,
|
||||
struct device *dev,
|
||||
struct rtc_class_ops *ops,
|
||||
const struct rtc_class_ops *ops,
|
||||
struct module *owner);
|
||||
extern void rtc_device_unregister(struct rtc_device *rdev);
|
||||
extern int rtc_interface_register(struct class_interface *intf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue