i2c: viperboard: return message count on master_xfer success
authorPeter Rosin <peda@axentia.se>
Wed, 9 May 2018 19:47:48 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:03:00 +0000 (04:03 +0900)
commitdaf6bdb29d55325d49bb00bacda154e91b374975
treee93a5e3cded77e1ad29ec6f754371aa262cf3428
parentcbfe697cdba95c055830f4e04cb4d30a4fdd6be1
i2c: viperboard: return message count on master_xfer success

[ Upstream commit 35cd67a0caf767aba472452865dcb4471fcce2b1 ]

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