OSDN Git Service

i2c: synquacer: fix synquacer_i2c_doxfer() return value
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Tue, 21 May 2019 01:33:50 +0000 (10:33 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2019 07:17:19 +0000 (09:17 +0200)
commitbb03290431bcd133a2e95b886b176c3e9e297317
tree50da81da94c27be9ef36e8cde1d41d042cf2ca25
parentd2d8f64012543898a0158b1fc5c07af3d41c89d8
i2c: synquacer: fix synquacer_i2c_doxfer() return value

commit ff9378904d9d7a3fcb8406604e089e535e357b1d upstream.

master_xfer should return the number of messages successfully
processed.

Fixes: 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C controller")
Cc: <stable@vger.kernel.org> # v4.19+
Signed-off-by: Okamoto Satoru <okamoto.satoru@socionext.com>
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-synquacer.c