i2c: rcar: refactor irq state machine
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 28 May 2014 07:44:39 +0000 (09:44 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 1 Jun 2014 20:22:29 +0000 (22:22 +0200)
commitf2382249b27d1589a1ae495a1df84d890982a3e1
treea51f0e3d8e53ddc22d430511c41639ad20c6a257
parent4f443a8a611d0cb3c40e95e0d90e9d7e4740eda6
i2c: rcar: refactor irq state machine

Remove the seperate functions and use designated constants. As readable
but less overhead. Actually, this is even more readable since the old
function used a mix of "=" and "|=".

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c