rtc: rx8025: Fix a parameter to %ptR in rx8025_read_alarm()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 10 Apr 2019 14:05:59 +0000 (17:05 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 11 Apr 2019 21:18:30 +0000 (23:18 +0200)
The commit 1921cab11723 ("rtc: rx8025: Switch to use %ptR") converted
the driver to use new %p extension, but actually used wrong type of
the parameter in one case.

Fix a parameter to %ptR in rx8025_read_alarm().

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rx8025.c

index 41de38acc570171eaebcc8e7fc89dd07353716c6..fddc996cb38d99a44b25a6d0b06518aa24d580ff 100644 (file)
@@ -311,7 +311,7 @@ static int rx8025_read_alarm(struct device *dev, struct rtc_wkalrm *t)
                t->time.tm_hour = bcd2bin(ald[1] & 0x1f) % 12
                        + (ald[1] & 0x20 ? 12 : 0);
 
-       dev_dbg(dev, "%s: date: %ptRr\n", __func__, t);
+       dev_dbg(dev, "%s: date: %ptRr\n", __func__, &t->time);
        t->enabled = !!(rx8025->ctrl1 & RX8025_BIT_CTRL1_DALE);
        t->pending = (ctrl2 & RX8025_BIT_CTRL2_DAFG) && t->enabled;