rtc-ds1302.c (c58310bf4933986513020fa90b4190c7492995ae) | rtc-ds1302.c (2a4e2b8780c6df42b19c053243dada7fa4d311ee) |
---|---|
1/* 2 * Dallas DS1302 RTC Support 3 * 4 * Copyright (C) 2002 David McCullough 5 * Copyright (C) 2003 - 2007 Paul Mundt 6 * 7 * This file is subject to the terms and conditions of the GNU General Public 8 * License version 2. See the file "COPYING" in the main directory of --- 108 unchanged lines hidden (view full) --- 117 118 if (tm->tm_year < 70) 119 tm->tm_year += 100; 120 121 spin_unlock_irq(&rtc->lock); 122 123 dev_dbg(dev, "%s: tm is secs=%d, mins=%d, hours=%d, " 124 "mday=%d, mon=%d, year=%d, wday=%d\n", | 1/* 2 * Dallas DS1302 RTC Support 3 * 4 * Copyright (C) 2002 David McCullough 5 * Copyright (C) 2003 - 2007 Paul Mundt 6 * 7 * This file is subject to the terms and conditions of the GNU General Public 8 * License version 2. See the file "COPYING" in the main directory of --- 108 unchanged lines hidden (view full) --- 117 118 if (tm->tm_year < 70) 119 tm->tm_year += 100; 120 121 spin_unlock_irq(&rtc->lock); 122 123 dev_dbg(dev, "%s: tm is secs=%d, mins=%d, hours=%d, " 124 "mday=%d, mon=%d, year=%d, wday=%d\n", |
125 __FUNCTION__, | 125 __func__, |
126 tm->tm_sec, tm->tm_min, tm->tm_hour, 127 tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday); 128 129 if (rtc_valid_tm(tm) < 0) 130 dev_err(dev, "invalid date\n"); 131 132 return 0; 133} --- 129 unchanged lines hidden --- | 126 tm->tm_sec, tm->tm_min, tm->tm_hour, 127 tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday); 128 129 if (rtc_valid_tm(tm) < 0) 130 dev_err(dev, "invalid date\n"); 131 132 return 0; 133} --- 129 unchanged lines hidden --- |