Lines 173-179
Link Here
|
173 |
* means "don't care" or "match all". Only the tm_hour, |
173 |
* means "don't care" or "match all". Only the tm_hour, |
174 |
* tm_min, and tm_sec values are filled in. |
174 |
* tm_min, and tm_sec values are filled in. |
175 |
*/ |
175 |
*/ |
176 |
|
176 |
memset(&wtime, 0, sizeof(struct rtc_time)); |
177 |
ds1286_get_alm_time(&wtime); |
177 |
ds1286_get_alm_time(&wtime); |
178 |
break; |
178 |
break; |
179 |
} |
179 |
} |
Lines 216-221
Link Here
|
216 |
} |
216 |
} |
217 |
case RTC_RD_TIME: /* Read the time/date from RTC */ |
217 |
case RTC_RD_TIME: /* Read the time/date from RTC */ |
218 |
{ |
218 |
{ |
|
|
219 |
memset(&wtime, 0, sizeof(struct rtc_time)); |
219 |
ds1286_get_time(&wtime); |
220 |
ds1286_get_time(&wtime); |
220 |
break; |
221 |
break; |
221 |
} |
222 |
} |