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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:02:59 +0000 (04:02 +0900)
commit0c1885743a9bdd554d20c368d775142224abdff9
tree9374589810dc9e2d06a0f4fdcb447cd2b17d9b56
parent7416dd78ad9a5c1e254d293cf5e3fee8656665cc
i2c: pmcmsp: return message count on master_xfer success

[ Upstream commit de9a8634f1cb4560a35696d472cc7f1383d9b866 ]

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")
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-pmcmsp.c