rtc: mc13xxx: make rtc_read_time() more readable
authorAlexander Shiyan <shc_work@mail.ru>
Thu, 3 Apr 2014 21:50:01 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:21 +0000 (16:21 -0700)
commit6a2b342228b98432a585c83d59ed6aa0620be7c4
tree3f70e81e8757a79d192405ca5ae669510b1a3431
parent12de362108d5ec24cce1bbe520570dc8fdccca9c
rtc: mc13xxx: make rtc_read_time() more readable

Remove unnecessary locks when reading the time and make the read
operation until the values of day matched between reading the seconds,
it will make the mc13xxx_rtc_read_time() procedure more readable.
Additionally, patch introduced a "seconds in a day" definition.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Sascha Hauer <kernel@pengutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-mc13xxx.c