[PATCH] i2c-powermac: Fix master_xfer return value
authorJean Delvare <khali@linux-fr.org>
Sat, 1 Jul 2006 15:12:53 +0000 (17:12 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 Jul 2006 22:43:07 +0000 (15:43 -0700)
commit8ced8eee8537b52ef5d77e28d7676ce81bc62359
treee4d71d931ea64159e5864ccc4ca8008db563e1cf
parentc3efacaa68a75049a859cbfd03d52dfdebb7527b
[PATCH] i2c-powermac: Fix master_xfer return value

Fix the value returned by the i2c-powermac's master_xfer method.
It should return the number of messages processed successfully, but
instead returns the number of data bytes in the first (and only)
processed message.

Also explicitly mention the master_xfer convention so that future
implementations get it right directly.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-powermac.c
include/linux/i2c.h