From ba46c88c6f077f7e6e1c266e9742870802037b68 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sat, 22 May 2010 00:28:26 +0000 Subject: rtc_enable_alarm() needs no return value git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26245 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/rtc/rtc_e8564.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'firmware/drivers/rtc/rtc_e8564.c') diff --git a/firmware/drivers/rtc/rtc_e8564.c b/firmware/drivers/rtc/rtc_e8564.c index 8b9f6bfa42..54e663424b 100644 --- a/firmware/drivers/rtc/rtc_e8564.c +++ b/firmware/drivers/rtc/rtc_e8564.c @@ -154,7 +154,7 @@ void rtc_get_alarm(int *h, int *m) *h = BCD2DEC(buf[0] & 0x3f); } -bool rtc_enable_alarm(bool enable) +void rtc_enable_alarm(bool enable) { unsigned char tmp=0; int rv=0; @@ -172,13 +172,11 @@ bool rtc_enable_alarm(bool enable) /* disable alarm interrupt */ if(rtc_lock_alarm_clear) /* lock disabling alarm before it was checked whether or not the unit was started by RTC alarm */ - return false; + return; rv = i2c_readbytes(RTC_ADDR, RTC_CTRL2, 1, &tmp); tmp &= ~(RTC_AIE | RTC_AF); pp_i2c_send(RTC_ADDR, RTC_CTRL2, tmp); } - - return false; } bool rtc_check_alarm_started(bool release_alarm) -- cgit v1.2.3