From: Alexander Shiyan Date: Thu, 3 Apr 2014 21:50:01 +0000 (-0700) Subject: rtc: mc13xxx: make rtc_read_time() more readable X-Git-Tag: v3.15-rc1~106^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a2b342228b98432a585c83d59ed6aa0620be7c4;p=pandora-kernel.git 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 Cc: Uwe Kleine-König Cc: Sascha Hauer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed