hw/display/sm501: Replace i2c_send_recv() by i2c_recv() & i2c_send()
commit4e7019bd483d1bcd480538138798740e851588b1
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 17 Jun 2021 11:53:23 +0000 (17 13:53 +0200)
committerCorey Minyard <cminyard@mvista.com>
Thu, 8 Jul 2021 19:15:01 +0000 (8 14:15 -0500)
treeda04ef50bb8419480c61f344ebb1cbef7f55c10b
parente91113d0f9481c072f74e8390399e11b93856844
hw/display/sm501: 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/display/sm501.c