Commit ab5625c3 authored by Guenter Roeck's avatar Guenter Roeck Committed by Wolfram Sang

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: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent 33ec5e81
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment