diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-04-30 07:19:28 -0400 |
---|---|---|
committer | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-04-30 07:19:28 -0400 |
commit | d5aa207e46ff7ee838683a7d95ecf46fe42a9a56 (patch) | |
tree | 2fe7cf50bb45a3ca94f095695bab5414fa56c1f3 /include/asm-arm | |
parent | a6ad57fb4b5e9d68553f4440377b99f75588fa88 (diff) |
[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>
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/rtc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-arm/rtc.h b/include/asm-arm/rtc.h index aa7e16b2e225..370dfe77589d 100644 --- a/include/asm-arm/rtc.h +++ b/include/asm-arm/rtc.h | |||
@@ -18,9 +18,9 @@ struct rtc_ops { | |||
18 | void (*release)(void); | 18 | void (*release)(void); |
19 | int (*ioctl)(unsigned int, unsigned long); | 19 | int (*ioctl)(unsigned int, unsigned long); |
20 | 20 | ||
21 | void (*read_time)(struct rtc_time *); | 21 | int (*read_time)(struct rtc_time *); |
22 | int (*set_time)(struct rtc_time *); | 22 | int (*set_time)(struct rtc_time *); |
23 | void (*read_alarm)(struct rtc_wkalrm *); | 23 | int (*read_alarm)(struct rtc_wkalrm *); |
24 | int (*set_alarm)(struct rtc_wkalrm *); | 24 | int (*set_alarm)(struct rtc_wkalrm *); |
25 | int (*proc)(char *buf); | 25 | int (*proc)(char *buf); |
26 | }; | 26 | }; |