i2c: pmcmsp: return message count on master_xfer success
authorPeter Rosin <peda@axentia.se>
Wed, 9 May 2018 19:46:29 +0000 (21:46 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 15 May 2018 07:30:34 +0000 (09:30 +0200)
commitde9a8634f1cb4560a35696d472cc7f1383d9b866
treec8eac6d486b85246107d07eeb249d4fe8097949e
parent06cb616b1bca7080824acfedb3d4c898e7a64836
i2c: pmcmsp: return message count on master_xfer success

Returning zero is wrong in this case.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Fixes: 1b144df1d7d6 ("i2c: New PMC MSP71xx TWI bus driver")
drivers/i2c/busses/i2c-pmcmsp.c