]> git.proxmox.com Git - mirror_qemu.git/commit
libqos: split I2CAdapter initialization and allocation
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Mar 2019 16:12:25 +0000 (17:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jun 2019 12:03:02 +0000 (14:03 +0200)
commit732c919cf04c0aaf1b092238e8b84cdb7adf657a
tree6b43291940e84e3c850e48d6987ca08c67c4d309
parentc4f00daa5b390a74f13a271e7237e173c527bbce
libqos: split I2CAdapter initialization and allocation

Provide *_init functions that populate an I2CAdapter struct without
allocating one, and make the existing *_create functions wrap them.

Because in the new setup *_create might return a pointer inside the
IMXI2C or OMAPI2C struct, create companion *_free functions to go
back to the outer pointer.

All this is temporary until allocation will be handled entirely by
qgraph.

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