summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorUwe Kleine-König <uwe@kleine-koenig.org>2016-07-11 10:05:28 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-07-19 18:18:06 +0200
commitbb9dbb01bef96f058f55b984e43a33894c624065 (patch)
treee5c82b6c13afc579a67b32c1517c1524e20c7cf8 /drivers
parentd2c92705c54c9c24f2b8be57b968ad21a30412e5 (diff)
downloadop-kernel-dev-bb9dbb01bef96f058f55b984e43a33894c624065.zip
op-kernel-dev-bb9dbb01bef96f058f55b984e43a33894c624065.tar.gz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-hym8563.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-hym8563.c b/drivers/rtc/rtc-hym8563.c
index 795a3f5..e5ad527 100644
--- a/drivers/rtc/rtc-hym8563.c
+++ b/drivers/rtc/rtc-hym8563.c
@@ -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 :
OpenPOWER on IntegriCloud