rtc-isl12022: properly handle military hour format
authorRoman Fietze <roman.fietze@telemotive.de>
Wed, 11 Aug 2010 01:02:21 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:08 +0000 (08:59 -0700)
commit6d23b2582fd0bc0a8cf3cfa4307f66281cacad4b
tree0b722ad87f55a61755a4c523adc2808e9e6a9deb
parentc03675f05ff9039dbea4bbc5332a885921e36dff
rtc-isl12022: properly handle military hour format

Mask out PM flag when reading the hour, always set MIL bit when
writing the hour.

Signed-off-by: Roman Fietze <roman.fietze@telemotive.de>
Acked-by: Wan ZongShun <mcuos.com@gmail.com>
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-isl12022.c