aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-rx8025.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-rx8025.c')
-rw-r--r--drivers/rtc/rtc-rx8025.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c
index 41de38acc570..fddc996cb38d 100644
--- a/drivers/rtc/rtc-rx8025.c
+++ b/drivers/rtc/rtc-rx8025.c
@@ -311,7 +311,7 @@ static int rx8025_read_alarm(struct device *dev, struct rtc_wkalrm *t)
311 t->time.tm_hour = bcd2bin(ald[1] & 0x1f) % 12 311 t->time.tm_hour = bcd2bin(ald[1] & 0x1f) % 12
312 + (ald[1] & 0x20 ? 12 : 0); 312 + (ald[1] & 0x20 ? 12 : 0);
313 313
314 dev_dbg(dev, "%s: date: %ptRr\n", __func__, t); 314 dev_dbg(dev, "%s: date: %ptRr\n", __func__, &t->time);
315 t->enabled = !!(rx8025->ctrl1 & RX8025_BIT_CTRL1_DALE); 315 t->enabled = !!(rx8025->ctrl1 & RX8025_BIT_CTRL1_DALE);
316 t->pending = (ctrl2 & RX8025_BIT_CTRL2_DAFG) && t->enabled; 316 t->pending = (ctrl2 & RX8025_BIT_CTRL2_DAFG) && t->enabled;
317 317