.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * ST M48T59 RTC driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2007 Wind River Systems, Inc. |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
11 | 8 | */ |
---|
12 | 9 | |
---|
13 | 10 | #include <linux/kernel.h> |
---|
.. | .. |
---|
99 | 96 | M48T59_CLEAR_BITS(M48T59_CNTL_READ, M48T59_CNTL); |
---|
100 | 97 | spin_unlock_irqrestore(&m48t59->lock, flags); |
---|
101 | 98 | |
---|
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); |
---|
105 | 100 | return 0; |
---|
106 | 101 | } |
---|
107 | 102 | |
---|
.. | .. |
---|
188 | 183 | M48T59_CLEAR_BITS(M48T59_CNTL_READ, M48T59_CNTL); |
---|
189 | 184 | spin_unlock_irqrestore(&m48t59->lock, flags); |
---|
190 | 185 | |
---|
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); |
---|
194 | 187 | return rtc_valid_tm(tm); |
---|
195 | 188 | } |
---|
196 | 189 | |
---|