From: Tony Prisk Date: Fri, 4 Jan 2013 23:35:48 +0000 (-0800) Subject: drivers/rtc/rtc-vt8500.c: fix handling of data passed in struct rtc_time X-Git-Tag: v3.8-rc3~16^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f90b68309683f2c5765a1b04ca23d71e51f1494;p=pandora-kernel.git drivers/rtc/rtc-vt8500.c: fix handling of data passed in struct rtc_time tm_mon is 0..11, whereas vt8500 expects 1..12 for the month field, causing invalid date errors for January, and causing the day field to roll over incorrectly. The century flag is only handled in vt8500_rtc_read_time, but not set in vt8500_rtc_set_time. This patch corrects the behaviour of the century flag. Signed-off-by: Edgar Toernig Signed-off-by: Tony Prisk Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed