Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208464
b: refs/heads/master
c: b485fe5
h: refs/heads/master
v: v3
  • Loading branch information
Wan ZongShun authored and Linus Torvalds committed Aug 11, 2010
1 parent 45095fa commit b99a32b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6c7428f9c2b1df1356a21837301647cb4f76e60
refs/heads/master: b485fe5ea1008db02abff9ef15be4f31b52df4f7
4 changes: 2 additions & 2 deletions trunk/drivers/rtc/rtc-m41t80.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int m41t80_get_datetime(struct i2c_client *client,

/* assume 20YY not 19YY, and ignore the Century Bit */
tm->tm_year = bcd2bin(buf[M41T80_REG_YEAR]) + 100;
return 0;
return rtc_valid_tm(tm);
}

/* Sets the given date and time to the real time clock. */
Expand Down Expand Up @@ -364,7 +364,7 @@ static int m41t80_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *t)
t->time.tm_isdst = -1;
t->enabled = !!(reg[M41T80_REG_ALARM_MON] & M41T80_ALMON_AFE);
t->pending = !!(reg[M41T80_REG_FLAGS] & M41T80_FLAGS_AF);
return 0;
return rtc_valid_tm(t);
}

static struct rtc_class_ops m41t80_rtc_ops = {
Expand Down

0 comments on commit b99a32b

Please sign in to comment.