.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* NXP PCF50633 RTC Driver |
---|
2 | 3 | * |
---|
3 | 4 | * (C) 2006-2008 by Openmoko, Inc. |
---|
.. | .. |
---|
6 | 7 | * |
---|
7 | 8 | * Broken down from monstrous PCF50633 driver mainly by |
---|
8 | 9 | * Harald Welte, Andy Green and Werner Almesberger |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify it |
---|
11 | | - * under the terms of the GNU General Public License as published by the |
---|
12 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
13 | | - * option) any later version. |
---|
14 | | - * |
---|
15 | 10 | */ |
---|
16 | 11 | |
---|
17 | 12 | #include <linux/kernel.h> |
---|
.. | .. |
---|
131 | 126 | |
---|
132 | 127 | pcf2rtc_time(tm, &pcf_tm); |
---|
133 | 128 | |
---|
134 | | - dev_dbg(dev, "RTC_TIME: %u.%u.%u %u:%u:%u\n", |
---|
135 | | - tm->tm_mday, tm->tm_mon, tm->tm_year, |
---|
136 | | - tm->tm_hour, tm->tm_min, tm->tm_sec); |
---|
| 129 | + dev_dbg(dev, "RTC_TIME: %ptRr\n", tm); |
---|
137 | 130 | |
---|
138 | 131 | return 0; |
---|
139 | 132 | } |
---|
.. | .. |
---|
146 | 139 | |
---|
147 | 140 | rtc = dev_get_drvdata(dev); |
---|
148 | 141 | |
---|
149 | | - dev_dbg(dev, "RTC_TIME: %u.%u.%u %u:%u:%u\n", |
---|
150 | | - tm->tm_mday, tm->tm_mon, tm->tm_year, |
---|
151 | | - tm->tm_hour, tm->tm_min, tm->tm_sec); |
---|
| 142 | + dev_dbg(dev, "RTC_TIME: %ptRr\n", tm); |
---|
152 | 143 | |
---|
153 | 144 | rtc2pcf_time(&pcf_tm, tm); |
---|
154 | 145 | |
---|