[PATCH] ARM: RTC: allow driver methods to return error
Allow RTC drivers to return error codes from their read_time or read_alarm methods. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
This commit is contained in:
@@ -18,9 +18,9 @@ struct rtc_ops {
|
||||
void (*release)(void);
|
||||
int (*ioctl)(unsigned int, unsigned long);
|
||||
|
||||
void (*read_time)(struct rtc_time *);
|
||||
int (*read_time)(struct rtc_time *);
|
||||
int (*set_time)(struct rtc_time *);
|
||||
void (*read_alarm)(struct rtc_wkalrm *);
|
||||
int (*read_alarm)(struct rtc_wkalrm *);
|
||||
int (*set_alarm)(struct rtc_wkalrm *);
|
||||
int (*proc)(char *buf);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user