[PATCH] I2C: ds1337: i2c_transfer() checking
authorLadislav Michl <ladis@linux-mips.org>
Wed, 4 May 2005 06:13:54 +0000 (08:13 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Jun 2005 04:51:51 +0000 (21:51 -0700)
commit00588243053bb40d0406c7843833f8fae81294ab
treeabf967a76d51f002a878ce6e6544c0b1c6cde62e
parent0b46e334d77b2d3b8b3aa665c81c4afbe9f1f458
[PATCH] I2C: ds1337: i2c_transfer() checking

i2c_transfer returns number of sucessfully transfered messages. Change
error checking to accordingly. (ds1337_set_datetime never returned
sucess)

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/chips/ds1337.c