Commit b3f0ceb7 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Wolfram Sang
Browse files

i2c: qcom-geni: Use the correct return value



The introduction of GPI support moved things around and instead of
returning the result from geni_i2c_xfer() the number of messages in the
request was returned, ignoring the actual result. Fix this.

Fixes: d8703554 ("i2c: qcom-geni: Add support for GPI DMA")
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: default avatarAndrew Halaney <ahalaney@redhat.com>
Reviewed-by: default avatarVinod Koul <vkoul@kernel.org>
Reviewed-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 9fdf6d97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -698,7 +698,7 @@ static int geni_i2c_xfer(struct i2c_adapter *adap,
	pm_runtime_put_autosuspend(gi2c->se.dev);
	gi2c->cur = NULL;
	gi2c->err = 0;
	return num;
	return ret;
}

static u32 geni_i2c_func(struct i2c_adapter *adap)