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
..
2007-10-16 09:43:13 -07:00
2008-01-24 20:40:44 -08:00
2008-02-06 10:41:13 -08:00
2008-05-08 10:46:55 -07:00
2008-04-28 08:58:16 -07:00
2007-10-19 11:53:41 -07:00
2008-05-11 20:37:06 +02:00