drivers/rtc/rtc-vt8500.c: correct handling of CR_24H bitfield
authorTony Prisk <linux@prisktech.co.nz>
Fri, 4 Jan 2013 23:35:47 +0000 (15:35 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 16 Jan 2013 01:13:20 +0000 (01:13 +0000)
commitc71f617db16d23d9c01faf7e5f63c058047d9648
treef2abab620d251903b70d7628797f6e9c7050093a
parent9a1eb12a55fda70ed451c0b7b6122de0f7ec3aad
drivers/rtc/rtc-vt8500.c: correct handling of CR_24H bitfield

commit 532db570e5181abc8f4f7bfa6c77c69ec2240198 upstream.

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 <linux@prisktech.co.nz>
Cc: Edgar Toernig <froese@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/rtc/rtc-vt8500.c