i2c: diolan-u2c: Fix master_xfer return code
authorGuenter Roeck <linux@roeck-us.net>
Thu, 9 Aug 2012 15:47:20 +0000 (08:47 -0700)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 18 Aug 2012 10:27:27 +0000 (12:27 +0200)
commitab5625c30a0a3c8a8491b641c939575c84bc0dbb
tree63af1f4e88174d37a1d70239d7a40cd6ed46bc5a
parent33ec5e818b7b0d0d02864a9586050c6f9a6a8b98
i2c: diolan-u2c: Fix master_xfer return code

The master_xfer function returns 0 on success. It should return the number of
successful transactions.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-diolan-u2c.c