i2c: qcom-geni: fix error return code in geni_i2c_gpi_xfer
authorWang Yufen <wangyufen@huawei.com>
Mon, 21 Nov 2022 10:17:52 +0000 (18:17 +0800)
committerWolfram Sang <wsa@kernel.org>
Thu, 1 Dec 2022 22:55:22 +0000 (23:55 +0100)
commit7d8ccf4f117d082156e842d959f634efcf203cef
tree4256eb5701b3bf41e2f3da75ee3bd57e383c0f91
parent8bfd4ec726945cec35ee5cafebc1c55b83d5a9fb
i2c: qcom-geni: fix error return code in geni_i2c_gpi_xfer

Fix to return a negative error code from the gi2c->err instead of
0.

Fixes: d8703554f4de ("i2c: qcom-geni: Add support for GPI DMA")
Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasoluitons.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-qcom-geni.c