lkml.org 
[lkml]   [2018]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] rtc: cros-ec: return -ETIME when refused to set alarms in the past
Hi guys,

On 02/27/2018 10:47 AM, Jeffy Chen wrote:
> /* Don't set an alarm in the past. */
> if ((u32)alarm_time < current_time)
Oops, i'm a idiot, forgot to use '<='... will resend it.
> - alarm_offset = EC_RTC_ALARM_CLEAR;
> - else
> - alarm_offset = (u32)alarm_time - current_time;
> + return -ETIME;
> +
> + alarm_offset = (u32)alarm_time - current_time;
> }


\
 
 \ /
  Last update: 2018-02-27 03:54    [W:0.037 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site