i2c: sh_mobile: refactor rx isr
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 16 Jan 2019 21:05:54 +0000 (22:05 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 22 Jan 2019 23:18:09 +0000 (00:18 +0100)
commit63c524600353a9c2d097041863a9ab36ed2db79b
tree02892bc0c3674cbe5a25ece33c7c2d41712af0e0
parent0130e3bfa9fa102252ad318d0f5608cc09822baa
i2c: sh_mobile: refactor rx isr

Remove the do_while loop which was just there to have an easy exit with
"break;" and replace it with if-else-blocks which should make the state
machine clearer.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c