diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-04-28 05:11:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:16 -0400 |
commit | a3ed107e63b7cd4d1ba1567a69a1feec5f0eabc1 (patch) | |
tree | af8b2801234d1218397801348b2917ceb5f37983 /drivers/rtc/rtc-ds1511.c | |
parent | c464652813fe128c346ce6e7ec8fb0d2b67de6fb (diff) |
make ds1511_rtc_{read,set}_time() static
Make the needlessly global ds1511_rtc_{read,set}_time() static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: David Brownell <david-b@pacbell.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-ds1511.c')
-rw-r--r-- | drivers/rtc/rtc-ds1511.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c index d08912f18ddd..a83a40b3ebaa 100644 --- a/drivers/rtc/rtc-ds1511.c +++ b/drivers/rtc/rtc-ds1511.c | |||
@@ -181,8 +181,7 @@ ds1511_wdog_disable(void) | |||
181 | * stupidly, some callers call with year unmolested; | 181 | * stupidly, some callers call with year unmolested; |
182 | * and some call with year = year - 1900. thanks. | 182 | * and some call with year = year - 1900. thanks. |
183 | */ | 183 | */ |
184 | int | 184 | static int ds1511_rtc_set_time(struct device *dev, struct rtc_time *rtc_tm) |
185 | ds1511_rtc_set_time(struct device *dev, struct rtc_time *rtc_tm) | ||
186 | { | 185 | { |
187 | u8 mon, day, dow, hrs, min, sec, yrs, cen; | 186 | u8 mon, day, dow, hrs, min, sec, yrs, cen; |
188 | unsigned int flags; | 187 | unsigned int flags; |
@@ -245,8 +244,7 @@ ds1511_rtc_set_time(struct device *dev, struct rtc_time *rtc_tm) | |||
245 | return 0; | 244 | return 0; |
246 | } | 245 | } |
247 | 246 | ||
248 | int | 247 | static int ds1511_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) |
249 | ds1511_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) | ||
250 | { | 248 | { |
251 | unsigned int century; | 249 | unsigned int century; |
252 | unsigned int flags; | 250 | unsigned int flags; |