diff options
author | Tony Prisk <[email protected]> | 2013-01-04 15:35:48 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-01-04 16:11:48 -0800 |
commit | 2f90b68309683f2c5765a1b04ca23d71e51f1494 (patch) | |
tree | 3054c10b47a02c1c6229a83a32c0b41a698cfda5 /net/lapb | |
parent | 532db570e5181abc8f4f7bfa6c77c69ec2240198 (diff) |
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 <[email protected]>
Signed-off-by: Tony Prisk <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions