Re: rtc/m41t80: use rtc_valid_tm() to check returned tm

From: Atsushi Nemoto
Date: Fri Sep 03 2010 - 08:44:52 EST


On Tue, 17 Aug 2010 23:05:31 +0900 (JST), Atsushi Nemoto <anemo@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/