]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Tue, 3 Jul 2018 09:18:42 +0000 (11:18 +0200)
commite80f75ff856c826a3d7e523975d95ce086666898
treeda64311a90351d072efcc1ea35c83bb9d5ab8a03
parentbcfde08b70bd07ee20fab75fc7fdb17af270f38f
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