lkml.org 
[lkml]   [2010]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: rtc/m41t80: use rtc_valid_tm() to check returned tm
From
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


\
 
 \ /
  Last update: 2010-09-03 14:47    [W:0.245 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site