hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/rtc/rtc-m48t59.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ST M48T59 RTC driver
34 *
45 * Copyright (c) 2007 Wind River Systems, Inc.
56 *
67 * Author: Mark Zhan <rongkai.zhan@windriver.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/kernel.h>
....@@ -99,9 +96,7 @@
9996 M48T59_CLEAR_BITS(M48T59_CNTL_READ, M48T59_CNTL);
10097 spin_unlock_irqrestore(&m48t59->lock, flags);
10198
102
- dev_dbg(dev, "RTC read time %04d-%02d-%02d %02d/%02d/%02d\n",
103
- tm->tm_year + 1900, tm->tm_mon, tm->tm_mday,
104
- tm->tm_hour, tm->tm_min, tm->tm_sec);
99
+ dev_dbg(dev, "RTC read time %ptR\n", tm);
105100 return 0;
106101 }
107102
....@@ -188,9 +183,7 @@
188183 M48T59_CLEAR_BITS(M48T59_CNTL_READ, M48T59_CNTL);
189184 spin_unlock_irqrestore(&m48t59->lock, flags);
190185
191
- dev_dbg(dev, "RTC read alarm time %04d-%02d-%02d %02d/%02d/%02d\n",
192
- tm->tm_year + 1900, tm->tm_mon, tm->tm_mday,
193
- tm->tm_hour, tm->tm_min, tm->tm_sec);
186
+ dev_dbg(dev, "RTC read alarm time %ptR\n", tm);
194187 return rtc_valid_tm(tm);
195188 }
196189