]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-vt8500.c: fix year field in vt8500_rtc_set_time()
authorTony Prisk <linux@prisktech.co.nz>
Mon, 4 Feb 2013 22:28:44 +0000 (14:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 5 Feb 2013 09:38:47 +0000 (20:38 +1100)
commitde15d885a4e6f3e1b5565c7972ebf23270d18057
tree34345ec62eee5542e55f9f2070557eb2ce711fd6
parent01acc09dde7c3289081e3f311ef9a2d6ecb5ca0e
drivers/rtc/rtc-vt8500.c: fix year field in vt8500_rtc_set_time()

The year field is incorrectly masked when setting the date.  If the year
is beyond 2099, the year field will be incorrectly updated in hardware.

This patch masks the year field correctly.

Signed-off-by: Edgar Toernig <froese@gmx.de>
Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-vt8500.c