]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit4259cb9b20f8c988cc6964ec5bdfa90628dadb98
treee4d71d931ea64159e5864ccc4ca8008db563e1cf
parentddcc9ebdc56e0a0a493ed905c791f0618f4ea9a6
[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