1
0
Fork 0

rtc: hym8563: in .read_alarm set .tm_sec to 0 to signal minute accuracy

Set .tm_sec to 0 instead of -1 to signal minute accuracy.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
steinar/wifi_calib_4_9_kernel
Uwe Kleine-König 2016-07-11 10:05:28 +02:00 committed by Alexandre Belloni
parent d2c92705c5
commit bb9dbb01be
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ static int hym8563_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm)
return ret;
/* The alarm only has a minute accuracy */
alm_tm->tm_sec = -1;
alm_tm->tm_sec = 0;
alm_tm->tm_min = (buf[0] & HYM8563_ALM_BIT_DISABLE) ?
-1 :