diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2009-10-12 19:00:59 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2009-10-12 19:00:59 +0000 |
commit | 48658eec41e47eb74602b54f540aa92651946fd8 (patch) | |
tree | 16b9d3194fca09f3a2e672657174a86b336aa76a | |
parent | 7331bd5381e27c67f401785b495af5e63efcc276 (diff) |
Replace a couple of magic numbers with the appropriate constants.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23138 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/rtc/rtc_d2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/rtc/rtc_d2.c b/firmware/drivers/rtc/rtc_d2.c index 8f60bc20df..9eb5f5e5e2 100644 --- a/firmware/drivers/rtc/rtc_d2.c +++ b/firmware/drivers/rtc/rtc_d2.c @@ -37,9 +37,9 @@ int rtc_read_datetime(struct tm *tm) oldlevel = disable_irq_save(); if (get_pmu_type() == PCF50606) - rc = pcf50606_read_multiple(0x0a, buf, sizeof(buf)); + rc = pcf50606_read_multiple(PCF5060X_RTCSC, buf, sizeof(buf)); else - rc = pcf50635_read_multiple(0x59, buf, sizeof(buf)); + rc = pcf50635_read_multiple(PCF5063X_REG_RTCSC, buf, sizeof(buf)); restore_irq(oldlevel); @@ -77,9 +77,9 @@ int rtc_write_datetime(const struct tm *tm) oldlevel = disable_irq_save(); if (get_pmu_type() == PCF50606) - rc = pcf50606_write_multiple(0x0a, buf, sizeof(buf)); + rc = pcf50606_write_multiple(PCF5060X_RTCSC, buf, sizeof(buf)); else - rc = pcf50635_write_multiple(0x59, buf, sizeof(buf)); + rc = pcf50635_write_multiple(PCF5063X_REG_RTCSC, buf, sizeof(buf)); restore_irq(oldlevel); |