]> git.proxmox.com Git - mirror_qemu.git/commit
libqos: convert I2C to qgraph
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Mar 2019 12:48:23 +0000 (13:48 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jun 2019 12:03:02 +0000 (14:03 +0200)
commitc0825c63cfae0d4af1f1f91867c42e609f3ed13c
treedb8d1f421d002e0490db979aee276c320a0c3a64
parent732c919cf04c0aaf1b092238e8b84cdb7adf657a
libqos: convert I2C to qgraph

Create an i2c-bus interface, corresponding to the I2CAdapter struct.
Wrap IMXI2C and OMAPI2C with a QOSGraphObject, and add the get_driver
function to retrieve the I2CAdapter.

The conversion is still not complete; for simplicity, i2c_recv and
i2c_send (along with their wrappers) still take an adapter/address
pair.  Fixing that would be complicated until the tests are converted
to qgraph, so it is left for after the conversion.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/Makefile.include
tests/libqos/i2c-imx.c
tests/libqos/i2c-omap.c
tests/libqos/i2c.c
tests/libqos/i2c.h