]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] i2c: ds1337 BCD conversion fix
authorJames Chapman <jchapman@katalix.com>
Sun, 6 Nov 2005 22:07:38 +0000 (23:07 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Nov 2005 05:46:37 +0000 (21:46 -0800)
commitef9627464490fe67235bbd5724d55345b92c0315
tree62ddcf3b6eaac8c723a09ab174c4afe330c135a3
parenta852daa00ad91350fe603da47becaf3d5af4f2bd
[PATCH] i2c: ds1337 BCD conversion fix

Fix BCD value errors when month=9, moving the increment inside the
BIN2BCD macro.
Fix similar code for the weekday value, just for consistency.

This bug was reported by Michael Burian <dynmail1@gassner-waagen.at>.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/chips/ds1337.c