i2c: rk3x: report number of messages transmitted
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 20 Apr 2015 22:14:47 +0000 (15:14 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 23 Apr 2015 17:35:28 +0000 (19:35 +0200)
commitc6cbfb91b878224e78408a2e15901c79de77115a
treec0371611dfcf9e4c990782fdbe6092c07a5596d9
parent27cf3a16b2535a490f8cf1d29a6634f1c70f7831
i2c: rk3x: report number of messages transmitted

master_xfer() method should return number of i2c messages transferred,
but on Rockchip we were usually returning just 1, which caused trouble
with users that actually check number of transferred messages vs.
checking for negative error codes.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-rk3x.c