i2c: xiic: Switch from waitqueue to completion
authorMarek Vasut <marex@denx.de>
Mon, 23 Aug 2021 21:41:43 +0000 (23:41 +0200)
committerWolfram Sang <wsa@kernel.org>
Tue, 14 Sep 2021 10:22:49 +0000 (12:22 +0200)
commitfdacc3c7405d1fc33c1f2771699a4fc24551e480
treee9b8a78df60c78b99799f1333fdb72a20d15b097
parent743e227a895923c37a333eb2ebf3e391f00c406d
i2c: xiic: Switch from waitqueue to completion

There will never be threads queueing up in the xiic_xmit(), use
completion synchronization primitive to wait for the interrupt
handler thread to complete instead as it is much better fit and
there is no need to overload it for this purpose.

Signed-off-by: Marek Vasut <marex@denx.de>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-xiic.c