* [2.6 patch] make ds1511_rtc_{read,set}_time() static
@ 2008-02-13 21:30 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2008-02-13 21:30 UTC (permalink / raw)
To: Andy Sharp, a.zummo; +Cc: rtc-linux, linux-kernel
This patch makes the needlessly global ds1511_rtc_{read,set}_time()
static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
drivers/rtc/rtc-ds1511.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
2ca22d827507d309cfd7182b9360d1edca531072 diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
index d74b808..d82fd71 100644
--- a/drivers/rtc/rtc-ds1511.c
+++ b/drivers/rtc/rtc-ds1511.c
@@ -181,8 +181,7 @@ ds1511_wdog_disable(void)
* stupidly, some callers call with year unmolested;
* and some call with year = year - 1900. thanks.
*/
- int
-ds1511_rtc_set_time(struct device *dev, struct rtc_time *rtc_tm)
+static int ds1511_rtc_set_time(struct device *dev, struct rtc_time *rtc_tm)
{
u8 mon, day, dow, hrs, min, sec, yrs, cen;
unsigned int flags;
@@ -245,8 +244,7 @@ ds1511_rtc_set_time(struct device *dev, struct rtc_time *rtc_tm)
return 0;
}
- int
-ds1511_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm)
+static int ds1511_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm)
{
unsigned int century;
unsigned int flags;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-13 21:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-13 21:30 [2.6 patch] make ds1511_rtc_{read,set}_time() static Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®