hw/i2c: Extract i2c_do_start_transfer() from i2c_start_transfer()
commit265caf45c6157f6b23f16292152ed9da5d2d1982
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 17 Jun 2021 11:53:33 +0000 (17 13:53 +0200)
committerCorey Minyard <cminyard@mvista.com>
Thu, 8 Jul 2021 19:15:01 +0000 (8 14:15 -0500)
tree9fe6fd2a5756e3cefe53a0f4e50b6bf4d003950e
parente656e387973b1c11f1b2b8c073a4ab1ed33504a2
hw/i2c: Extract i2c_do_start_transfer() from i2c_start_transfer()

To allow further simplications, extract i2c_do_start_transfer()
from i2c_start_transfer(). This is mostly the same function,
but the former is static and takes an enum argument.

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