rtc: ricoh583: Fixing month & year calculations
authorvenu byravarasu <vbyravarasu@nvidia.com>
Wed, 28 Dec 2011 11:41:22 +0000 (16:41 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:10:11 +0000 (01:10 -0700)
commita285d4f054fde82af7d7ee7af84801c4773c0d9b
tree70b56dc8179f6554361f0756597119bf3af3a1ce
parentdf89c52f34616b120764b1d8cb81bdb1b8183cb9
rtc: ricoh583: Fixing month & year calculations

Changes done:
1. As Ricoh RTC month range is between 1 - 12 instead of
0 - 11, fixing it.
2. Filling only two valid BCD digits in the year fields.
3. Enabling YAL alone, with workaround.
4. Code clean up based on check patch warnings.

bug 902137

Change-Id: I497ac5d04230e87baa776e84f6eafa8a28ae54ea
Signed-off-by: venu byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/72082
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: R02eef51a99234cb9889f351b32f8567e437c9d91
drivers/rtc/rtc-ricoh583.c