projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ec5e8
)
i2c: diolan-u2c: Fix master_xfer return code
author
Guenter Roeck
<linux@roeck-us.net>
Thu, 9 Aug 2012 15:47:20 +0000
(08:47 -0700)
committer
Wolfram Sang
<w.sang@pengutronix.de>
Sat, 18 Aug 2012 10:27:27 +0000
(12:27 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-diolan-u2c.c
b/drivers/i2c/busses/i2c-diolan-u2c.c
index
aedb94f
..
dae3ddf
100644
(file)
--- a/
drivers/i2c/busses/i2c-diolan-u2c.c
+++ b/
drivers/i2c/busses/i2c-diolan-u2c.c
@@
-405,6
+405,7
@@
static int diolan_usb_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs,
}
}
}
+ ret = num;
abort:
sret = diolan_i2c_stop(dev);
if (sret < 0 && ret >= 0)