diff options
Diffstat (limited to 'drivers/rtc/rtc-m41t80.c')
-rw-r--r-- | drivers/rtc/rtc-m41t80.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 89674b5e6efd..a5248aa1abf1 100644 --- a/drivers/rtc/rtc-m41t80.c +++ b/drivers/rtc/rtc-m41t80.c | |||
@@ -168,7 +168,7 @@ static int m41t80_set_datetime(struct i2c_client *client, struct rtc_time *tm) | |||
168 | buf[M41T80_REG_MIN] = | 168 | buf[M41T80_REG_MIN] = |
169 | bin2bcd(tm->tm_min) | (buf[M41T80_REG_MIN] & ~0x7f); | 169 | bin2bcd(tm->tm_min) | (buf[M41T80_REG_MIN] & ~0x7f); |
170 | buf[M41T80_REG_HOUR] = | 170 | buf[M41T80_REG_HOUR] = |
171 | bin2bcd(tm->tm_hour) | (buf[M41T80_REG_HOUR] & ~0x3f) ; | 171 | bin2bcd(tm->tm_hour) | (buf[M41T80_REG_HOUR] & ~0x3f); |
172 | buf[M41T80_REG_WDAY] = | 172 | buf[M41T80_REG_WDAY] = |
173 | (tm->tm_wday & 0x07) | (buf[M41T80_REG_WDAY] & ~0x07); | 173 | (tm->tm_wday & 0x07) | (buf[M41T80_REG_WDAY] & ~0x07); |
174 | buf[M41T80_REG_DAY] = | 174 | buf[M41T80_REG_DAY] = |