drivers/rtc/rtc-vt8500.c: correct handling of CR_24H bitfield
authorTony Prisk <[email protected]>
Fri, 4 Jan 2013 23:35:47 +0000 (15:35 -0800)
committerLinus Torvalds <[email protected]>
Sat, 5 Jan 2013 00:11:48 +0000 (16:11 -0800)
commit532db570e5181abc8f4f7bfa6c77c69ec2240198
tree007f42a30cd7ac973a07a7439fab6a89037cf869
parentdc59ed38653f3473802ea6191ef91fbb6d06a0f6
drivers/rtc/rtc-vt8500.c: correct handling of CR_24H bitfield

Control register bitfield for 12H/24H mode is handled incorrectly.
Setting CR_24H actually enables 12H mode.  This patch renames the define
and changes the initialization code to correctly set 24H mode.

Signed-off-by: Tony Prisk <[email protected]>
Cc: Edgar Toernig <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-vt8500.c