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_ds1339_ds3231.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'firmware/drivers/rtc/rtc_ds1339_ds3231.c') diff --git a/firmware/drivers/rtc/rtc_ds1339_ds3231.c b/firmware/drivers/rtc/rtc_ds1339_ds3231.c index 01624e048b..a813e8d999 100644 --- a/firmware/drivers/rtc/rtc_ds1339_ds3231.c +++ b/firmware/drivers/rtc/rtc_ds1339_ds3231.c @@ -99,9 +99,7 @@ void rtc_get_alarm(int *h, int *m) /* turn alarm on or off by setting the alarm flag enable */ /* the alarm is automatically disabled when the RTC gets Vcc power at startup */ /* avoid that an alarm occurs when the device is on because this locks the ON key forever */ -/* returns false if alarm was set and alarm flag (output) is off */ -/* returns true if alarm flag went on, which would lock the device, so the alarm was disabled again */ -bool rtc_enable_alarm(bool enable) +void rtc_enable_alarm(bool enable) { unsigned char buf[2]; @@ -109,8 +107,6 @@ bool rtc_enable_alarm(bool enable) buf[1] = 0x00; /* reset alarm flags (and OSF for good measure) */ sw_i2c_write(RTC_ADDR, 0x0e, buf, 2); - - return false; /* all ok */ } #endif /* HAVE_RTC_ALARM */ -- cgit v1.2.3