rtc-au1xxx.c (0337966d121ebebf73a1c346123e8112796e684e) | rtc-au1xxx.c (22652ba72453d35c8a637d5c0f06b3dc29ff9eb0) |
---|---|
1/* 2 * Au1xxx counter0 (aka Time-Of-Year counter) RTC interface driver. 3 * 4 * Copyright (C) 2008 Manuel Lauss <mano@roarinelk.homelinux.net> 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. --- 22 unchanged lines hidden (view full) --- 31static int au1xtoy_rtc_read_time(struct device *dev, struct rtc_time *tm) 32{ 33 unsigned long t; 34 35 t = alchemy_rdsys(AU1000_SYS_TOYREAD); 36 37 rtc_time_to_tm(t, tm); 38 | 1/* 2 * Au1xxx counter0 (aka Time-Of-Year counter) RTC interface driver. 3 * 4 * Copyright (C) 2008 Manuel Lauss <mano@roarinelk.homelinux.net> 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. --- 22 unchanged lines hidden (view full) --- 31static int au1xtoy_rtc_read_time(struct device *dev, struct rtc_time *tm) 32{ 33 unsigned long t; 34 35 t = alchemy_rdsys(AU1000_SYS_TOYREAD); 36 37 rtc_time_to_tm(t, tm); 38 |
39 return rtc_valid_tm(tm); | 39 return 0; |
40} 41 42static int au1xtoy_rtc_set_time(struct device *dev, struct rtc_time *tm) 43{ 44 unsigned long t; 45 46 rtc_tm_to_time(tm, &t); 47 --- 81 unchanged lines hidden --- | 40} 41 42static int au1xtoy_rtc_set_time(struct device *dev, struct rtc_time *tm) 43{ 44 unsigned long t; 45 46 rtc_tm_to_time(tm, &t); 47 --- 81 unchanged lines hidden --- |