Messages in this thread | | | Date | Fri, 03 Sep 2010 21:44:38 +0900 (JST) | Subject | Re: rtc/m41t80: use rtc_valid_tm() to check returned tm | From | Atsushi Nemoto <> |
| |
On Tue, 17 Aug 2010 23:05:31 +0900 (JST), Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote: > No, t->time does not contain complete date/time. It just holds some > alarm settings and -1 for some fields. > > So rtc_valid_tm(&t->time) will always returns -EINVAL. > The correct fix would be just reverting rtc_valid_tm here. > > ------------------------------------------------------ > From: Atsushi Nemoto <anemo@mba.ocn.ne.jp> > Subject: [PATCH] rtc: m41t80: do not use rtc_valid_tm in m41t80_rtc_read_alarm
Sorry, the patch contains non UTF-8 commit log. I will resend the patch with corrected commit log.
--- Atsushi Nemoto
| |