Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb9dbb01 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Alexandre Belloni
Browse files

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: default avatarUwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent d2c92705
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 :