summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-max77663.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-max77663.c')
-rw-r--r--drivers/rtc/rtc-max77663.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-max77663.c b/drivers/rtc/rtc-max77663.c
index 1354b8306256..874a2df86dc1 100644
--- a/drivers/rtc/rtc-max77663.c
+++ b/drivers/rtc/rtc-max77663.c
@@ -444,10 +444,10 @@ static int max77663_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
int ret;
dev_dbg(rtc->dev, "rtc_set_alarm: "
- "tm: %d-%02d-%02d %02d:%02d:%02d, wday=%d\n",
+ "tm: %d-%02d-%02d %02d:%02d:%02d, wday=%d [%s]\n",
alrm->time.tm_year, alrm->time.tm_mon, alrm->time.tm_mday,
alrm->time.tm_hour, alrm->time.tm_min, alrm->time.tm_sec,
- alrm->time.tm_wday);
+ alrm->time.tm_wday, alrm->enabled?"enable":"disable");
ret = max77663_rtc_tm_to_reg(rtc, buf, &alrm->time, 1);
if (ret < 0) {
@@ -469,7 +469,7 @@ static int max77663_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
return ret;
}
- ret = max77663_rtc_alarm_irq_enable(dev, 1);
+ ret = max77663_rtc_alarm_irq_enable(dev, alrm->enabled);
if (ret < 0) {
dev_err(rtc->dev,
"rtc_set_alarm: Failed to enable rtc alarm\n");