summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-12-04 15:23:47 +0000
committerDave Chapman <dave@dchapman.com>2005-12-04 15:23:47 +0000
commit8c800cf59af23eaa22b97e89556640f63998b9bd (patch)
tree96115da5d0597b7625c637158364866d365258e1 /firmware/drivers
parent0ea71be34895a225e137af20faea2adc9f113853 (diff)
Replace references to HAVE_RTC with CONFIG_RTC and remove the HAVE_RTC defines from config-*.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8147 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/fat.c6
-rw-r--r--firmware/drivers/rtc.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 758e48cdbd..fd09bff0da 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -1010,7 +1010,7 @@ static void fat_time(unsigned short* date,
unsigned short* time,
unsigned short* tenth )
{
-#ifdef HAVE_RTC
+#ifdef CONFIG_RTC
struct tm* tm = get_time();
if (date)
@@ -1092,7 +1092,7 @@ static void fat_time(unsigned short* date,
}
if (tenth)
*tenth = 0;
-#endif /* HAVE_RTC */
+#endif /* CONFIG_RTC */
}
static int write_long_name(struct fat_file* file,
@@ -1529,7 +1529,7 @@ static int update_short_entry( struct fat_file* file, long size, int attr )
*sizeptr = htole32(size);
{
-#ifdef HAVE_RTC
+#ifdef CONFIG_RTC
unsigned short time = 0;
unsigned short date = 0;
#else
diff --git a/firmware/drivers/rtc.c b/firmware/drivers/rtc.c
index 0e65a8be5b..30bbb6dfcb 100644
--- a/firmware/drivers/rtc.c
+++ b/firmware/drivers/rtc.c
@@ -17,7 +17,7 @@
*
****************************************************************************/
#include "config.h"
-#ifdef HAVE_RTC
+#ifdef CONFIG_RTC
#include "i2c.h"
#include "rtc.h"
#include "kernel.h"