diff options
Diffstat (limited to 'arch/m68k/sun3x')
-rw-r--r-- | arch/m68k/sun3x/time.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/m68k/sun3x/time.c b/arch/m68k/sun3x/time.c index f5eaafb00d21..536a04aaf22f 100644 --- a/arch/m68k/sun3x/time.c +++ b/arch/m68k/sun3x/time.c | |||
@@ -47,23 +47,23 @@ int sun3x_hwclk(int set, struct rtc_time *t) | |||
47 | 47 | ||
48 | if(set) { | 48 | if(set) { |
49 | h->csr |= C_WRITE; | 49 | h->csr |= C_WRITE; |
50 | h->sec = BIN2BCD(t->tm_sec); | 50 | h->sec = bin2bcd(t->tm_sec); |
51 | h->min = BIN2BCD(t->tm_min); | 51 | h->min = bin2bcd(t->tm_min); |
52 | h->hour = BIN2BCD(t->tm_hour); | 52 | h->hour = bin2bcd(t->tm_hour); |
53 | h->wday = BIN2BCD(t->tm_wday); | 53 | h->wday = bin2bcd(t->tm_wday); |
54 | h->mday = BIN2BCD(t->tm_mday); | 54 | h->mday = bin2bcd(t->tm_mday); |
55 | h->month = BIN2BCD(t->tm_mon); | 55 | h->month = bin2bcd(t->tm_mon); |
56 | h->year = BIN2BCD(t->tm_year); | 56 | h->year = bin2bcd(t->tm_year); |
57 | h->csr &= ~C_WRITE; | 57 | h->csr &= ~C_WRITE; |
58 | } else { | 58 | } else { |
59 | h->csr |= C_READ; | 59 | h->csr |= C_READ; |
60 | t->tm_sec = BCD2BIN(h->sec); | 60 | t->tm_sec = bcd2bin(h->sec); |
61 | t->tm_min = BCD2BIN(h->min); | 61 | t->tm_min = bcd2bin(h->min); |
62 | t->tm_hour = BCD2BIN(h->hour); | 62 | t->tm_hour = bcd2bin(h->hour); |
63 | t->tm_wday = BCD2BIN(h->wday); | 63 | t->tm_wday = bcd2bin(h->wday); |
64 | t->tm_mday = BCD2BIN(h->mday); | 64 | t->tm_mday = bcd2bin(h->mday); |
65 | t->tm_mon = BCD2BIN(h->month); | 65 | t->tm_mon = bcd2bin(h->month); |
66 | t->tm_year = BCD2BIN(h->year); | 66 | t->tm_year = bcd2bin(h->year); |
67 | h->csr &= ~C_READ; | 67 | h->csr &= ~C_READ; |
68 | } | 68 | } |
69 | 69 | ||