hw/i2c/ppc4xx_i2c: Replace i2c_send_recv() by i2c_recv() & i2c_send()
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 17 Jun 2021 11:53:25 +0000 (13:53 +0200)
committerCorey Minyard <cminyard@mvista.com>
Thu, 8 Jul 2021 19:15:01 +0000 (14:15 -0500)
commitf8ffea755c3377b2c4b1800c1709ddd98b19882c
tree8992e04b2eaf81e77e15802624858350ae367801
parentc699bf610bf814de478e81e0f1f375b386170ff5
hw/i2c/ppc4xx_i2c: Replace i2c_send_recv() by i2c_recv() & i2c_send()

Instead of using the confuse i2c_send_recv(), rewrite to directly
call i2c_recv() & i2c_send(), resulting in code easier to review.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
hw/i2c/ppc4xx_i2c.c