]> git.proxmox.com Git - mirror_qemu.git/commit
hw/i2c: Introduce i2c_start_recv() and i2c_start_send()
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 17 Jun 2021 11:53:34 +0000 (13:53 +0200)
committerCorey Minyard <cminyard@mvista.com>
Thu, 8 Jul 2021 19:15:01 +0000 (14:15 -0500)
commit90603c5b894eae0e4c8a4a6fdde622143142489c
tree0a4eb35f0fe6a53bf8e2b165373307a7b7826b12
parent265caf45c6157f6b23f16292152ed9da5d2d1982
hw/i2c: Introduce i2c_start_recv() and i2c_start_send()

To ease reviewing code using the I2C bus API, introduce the
i2c_start_recv() and i2c_start_send() helpers which don't
take the confusing 'is_recv' boolean argument.

Use these new helpers in the SMBus / AUX bus models.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
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
hw/i2c/pm_smbus.c
hw/i2c/smbus_master.c
hw/misc/auxbus.c
include/hw/i2c/i2c.h