i2c: wmt: Reduce redundant: wait event complete
authorHans Hu <hanshu-oc@zhaoxin.com>
Thu, 2 Nov 2023 02:53:52 +0000 (10:53 +0800)
committerWolfram Sang <wsa@kernel.org>
Thu, 18 Jan 2024 20:10:43 +0000 (21:10 +0100)
commit8a22991a48f2602aaab79df1301483d50bc51b2c
tree75b2e37ee236f565d9f3ec0834c1ef349b2213a3
parent462e9804d2c90bfffb494718b5aae5c374ff3b78
i2c: wmt: Reduce redundant: wait event complete

Put the handling of interrupt events in a function class
to reduce code redundancy.

Signed-off-by: Hans Hu <hanshu-oc@zhaoxin.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-wmt.c