Haavard Skinnemoen 529a4f4ec9 rtc-at32ap700x: fix bug in at32_rtc_readalarm()
alarm->pending indicates whether there's an alarm that has actually been
triggered, not whether we're waiting for it.  alarm->enabled indicates
that.

Also add missing locking around reading the RTC registers.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-06-12 18:05:40 -07:00
..
2008-06-05 08:36:37 -07:00
2008-06-11 16:50:40 -07:00
2008-06-12 18:05:40 -07:00
2008-05-24 09:56:11 -07:00
2008-06-10 12:50:14 -07:00
2008-06-05 16:14:17 -07:00
2008-06-12 18:05:40 -07:00
2008-05-30 15:09:46 +10:00