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 /firmware/drivers/rtc/rtc_d2.c | |
parent | 7331bd5381e27c67f401785b495af5e63efcc276 (diff) | |
download | rockbox-48658eec41e47eb74602b54f540aa92651946fd8.tar.gz rockbox-48658eec41e47eb74602b54f540aa92651946fd8.zip |
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
Diffstat (limited to 'firmware/drivers/rtc/rtc_d2.c')
-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) | |||
37 | oldlevel = disable_irq_save(); | 37 | oldlevel = disable_irq_save(); |
38 | 38 | ||
39 | if (get_pmu_type() == PCF50606) | 39 | if (get_pmu_type() == PCF50606) |
40 | rc = pcf50606_read_multiple(0x0a, buf, sizeof(buf)); | 40 | rc = pcf50606_read_multiple(PCF5060X_RTCSC, buf, sizeof(buf)); |
41 | else | 41 | else |
42 | rc = pcf50635_read_multiple(0x59, buf, sizeof(buf)); | 42 | rc = pcf50635_read_multiple(PCF5063X_REG_RTCSC, buf, sizeof(buf)); |
43 | 43 | ||
44 | restore_irq(oldlevel); | 44 | restore_irq(oldlevel); |
45 | 45 | ||
@@ -77,9 +77,9 @@ int rtc_write_datetime(const struct tm *tm) | |||
77 | oldlevel = disable_irq_save(); | 77 | oldlevel = disable_irq_save(); |
78 | 78 | ||
79 | if (get_pmu_type() == PCF50606) | 79 | if (get_pmu_type() == PCF50606) |
80 | rc = pcf50606_write_multiple(0x0a, buf, sizeof(buf)); | 80 | rc = pcf50606_write_multiple(PCF5060X_RTCSC, buf, sizeof(buf)); |
81 | else | 81 | else |
82 | rc = pcf50635_write_multiple(0x59, buf, sizeof(buf)); | 82 | rc = pcf50635_write_multiple(PCF5063X_REG_RTCSC, buf, sizeof(buf)); |
83 | 83 | ||
84 | restore_irq(oldlevel); | 84 | restore_irq(oldlevel); |
85 | 85 | ||