]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: spacemit: move i2c_xfer_msg()
authorTroy Mitchell <troy.mitchell@linux.spacemit.com>
Sat, 7 Feb 2026 15:08:21 +0000 (23:08 +0800)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 9 Apr 2026 16:33:50 +0000 (18:33 +0200)
commit5b74da8e6cf7e2b5aed0836c733238c0fd7235af
treeb7bbb72019fff2c1db5cd521f67c292508476f21
parentdd0422eb1566a823587ede7780aef9c9c7a45b04
i2c: spacemit: move i2c_xfer_msg()

The upcoming PIO support requires a wait_pio_xfer() helper, which is
invoked from xfer_msg().

Since wait_pio_xfer() depends on err_check(), move the definition of
xfer_msg() after err_check() to avoid a forward declaration of
err_check().

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Alex Elder <elder@riscstar.com>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260207-b4-k3-i2c-pio-v7-1-626942d94d91@linux.spacemit.com
drivers/i2c/busses/i2c-k1.c