]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] I2C: ds1337 - fix 12/24 hour mode bug
authorLadislav Michl <ladis@linux-mips.org>
Fri, 29 Jul 2005 19:15:00 +0000 (12:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Jul 2005 20:12:50 +0000 (13:12 -0700)
commitd91e16943fdaf02bf3459059abca1032589c0663
treed583c855984bc43f3b3c25c2b43a5dec5bf1fd75
parentcb14c3a13cb1e78acf54a9ddc9e5f3e2f023523e
[PATCH] I2C: ds1337 - fix 12/24 hour mode bug

DS1339 manual, page 6, chapter Date and time operation:
  The DS1339 can be run in either 12-hour or 24-hour mode. Bit 6 of the
  hours register is defined as the 12-hour or 24-hour mode-select bit.
  When high, the 12-hour mode is selected.

Patch below makes ds1337 driver work as documented in manual.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/i2c/chips/ds1337.c