[PATCH] m41t00: fix bitmasks when writing to chip
authorDavid Barksdale <amatus@ocgnet.org>
Wed, 19 Apr 2006 05:20:27 +0000 (22:20 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 19 Apr 2006 16:13:49 +0000 (09:13 -0700)
commit8db08de4f6ae24e90aedf5125b5ddd52ffff15f4
treea35f45d38b25f1ad9ddbc006712488d26ecaf987
parentb73781c866f671ff5a84d7c840510b43e8731d13
[PATCH] m41t00: fix bitmasks when writing to chip

Fix the bitmasks used when writing to the M41T00 registers.

The original code used a mask of 0x7f when writing to each register,
this is incorrect and probably the result of a copy-paste error.  As a
result years from 1980 to 1999 will be read back as 2000 to 2019.

Signed-off-by: David Barksdale <amatus@ocgnet.org>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/i2c/chips/m41t00.c