Source
204
204
* and how they are defined in a struct rtc_time;
205
205
*/
206
206
if (tm->tm_year < 45)
207
207
tm->tm_year += 30;
208
208
tm->tm_year += 40;
209
209
if (tm->tm_year < 70)
210
210
tm->tm_year += 100;
211
211
212
212
tm->tm_mon--;
213
213
214
-
return rtc_valid_tm(tm);
214
+
return 0;
215
215
}
216
216
217
217
static int ds1286_set_time(struct device *dev, struct rtc_time *tm)
218
218
{
219
219
struct ds1286_priv *priv = dev_get_drvdata(dev);
220
220
unsigned char mon, day, hrs, min, sec;
221
221
unsigned char save_control;
222
222
unsigned int yrs;
223
223
unsigned long flags;
224
224