summaryrefslogtreecommitdiff
path: root/firmware/drivers/rtc/rtc_pcf50605.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-22 00:28:26 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-22 00:28:26 +0000
commitba46c88c6f077f7e6e1c266e9742870802037b68 (patch)
tree8a663c4f83c4f11d19360c044a351e8bd7ced252 /firmware/drivers/rtc/rtc_pcf50605.c
parent8302c5fe17b0c9e74f1c1d9941c852153516387d (diff)
downloadrockbox-ba46c88c6f077f7e6e1c266e9742870802037b68.tar.gz
rockbox-ba46c88c6f077f7e6e1c266e9742870802037b68.zip
rtc_enable_alarm() needs no return value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26245 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/rtc/rtc_pcf50605.c')
-rw-r--r--firmware/drivers/rtc/rtc_pcf50605.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/drivers/rtc/rtc_pcf50605.c b/firmware/drivers/rtc/rtc_pcf50605.c
index b030fba37a..8c54a590c6 100644
--- a/firmware/drivers/rtc/rtc_pcf50605.c
+++ b/firmware/drivers/rtc/rtc_pcf50605.c
@@ -92,9 +92,8 @@ bool rtc_check_alarm_flag(void)
92 * The Ipod bootloader clears all PCF interrupt registers and always enables 92 * The Ipod bootloader clears all PCF interrupt registers and always enables
93 * the "wake on RTC" bit on OOCC1, so we have to rely on other means to find 93 * the "wake on RTC" bit on OOCC1, so we have to rely on other means to find
94 * out if we just woke from an alarm. 94 * out if we just woke from an alarm.
95 * Return value is always false for us.
96 */ 95 */
97bool rtc_enable_alarm(bool enable) 96void rtc_enable_alarm(bool enable)
98{ 97{
99 if (enable) { 98 if (enable) {
100 /* Tell the PCF to ignore everything but second, minute and hour, so 99 /* Tell the PCF to ignore everything but second, minute and hour, so
@@ -114,7 +113,6 @@ bool rtc_enable_alarm(bool enable)
114 /* Make sure we don't wake on RTC after shutting down */ 113 /* Make sure we don't wake on RTC after shutting down */
115 pcf50605_wakeup_flags &= ~0x10; 114 pcf50605_wakeup_flags &= ~0x10;
116 } 115 }
117 return false;
118} 116}
119 117
120/** 118/**