i2c: designware: Move interrupt handling functions before i2c_dw_xfer()
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Tue, 13 Feb 2024 12:48:45 +0000 (14:48 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 27 Feb 2024 00:51:34 +0000 (01:51 +0100)
commitbd002efaa16e4cfffc25db2d9c4669aaa2b43646
treebade2b1425a3ababbc64c8890051d1deca77afc0
parent04c71da4a9f4eef94bec153ed667d105dacffda3
i2c: designware: Move interrupt handling functions before i2c_dw_xfer()

Code is more logically arranged when i2c_dw_read_clear_intrbits() and
i2c_dw_isr() are located before i2c_dw_xfer().

Real reason for this is to prepare for more shared code between
interrupt and polling mode code.

While at it, remove one extra space and refer to the
i2c_dw_init_master() in two comment sections.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Jiawen Wu <jiawenwu@trustnetic.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-designware-master.c