i2c: rcar: use flags instead of atomic_xfer
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 20 May 2022 20:29:18 +0000 (22:29 +0200)
committerWolfram Sang <wsa@kernel.org>
Sat, 21 May 2022 10:55:32 +0000 (12:55 +0200)
commite35fb4188942a7338588536cf9e9756c34c103fb
tree3b1fcbaf599cb902dd0f3fd8c6810f32a0e4c7f5
parentf0f0e07685609c84ef5e0a3b1725bb666c95fbc4
i2c: rcar: use flags instead of atomic_xfer

i2c-rcar already has priv->flags. This patch adds a new persistent flag
ID_P_NOT_ATOMIC and uses it to save the extra variable. The negation of
the logic was done to make the code more readable.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
[wsa: negated the logic, rebased, updated the commit message]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-rcar.c