First patch is a cleanup to aid further improvements. Patch 2 moves a persistent-flag to non-persistent. Patch 3 turns a bool variable to another flag. Thanks go to Morimoto-san for patch 3. Tested on a Renesas Lager board with R-Car Gen2. To get all the dependencies, pull this branch: git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/i2c/refactor-flags Looking forward to comments! Happy hacking, Wolfram Kuninori Morimoto (1): i2c: rcar: use flags instead of atomic_xfer Wolfram Sang (2): i2c: rcar: use BIT macro consistently i2c: rcar: REP_AFTER_RD is not a persistent flag drivers/i2c/busses/i2c-rcar.c | 103 +++++++++++++++++----------------- 1 file changed, 51 insertions(+), 52 deletions(-) -- 2.35.1