hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/rtc/rtc-pcf50633.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* NXP PCF50633 RTC Driver
23 *
34 * (C) 2006-2008 by Openmoko, Inc.
....@@ -6,12 +7,6 @@
67 *
78 * Broken down from monstrous PCF50633 driver mainly by
89 * 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
- *
1510 */
1611
1712 #include <linux/kernel.h>
....@@ -131,9 +126,7 @@
131126
132127 pcf2rtc_time(tm, &pcf_tm);
133128
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);
137130
138131 return 0;
139132 }
....@@ -146,9 +139,7 @@
146139
147140 rtc = dev_get_drvdata(dev);
148141
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);
152143
153144 rtc2pcf_time(&pcf_tm, tm);
154145