summary refs log tree commit diff stats
path: root/tests/libqos/i2c.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-03-18 17:12:25 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-06-03 14:03:02 +0200
commit732c919cf04c0aaf1b092238e8b84cdb7adf657a (patch)
tree6b43291940e84e3c850e48d6987ca08c67c4d309 /tests/libqos/i2c.c
parentc4f00daa5b390a74f13a271e7237e173c527bbce (diff)
downloadfocaccia-qemu-732c919cf04c0aaf1b092238e8b84cdb7adf657a.tar.gz
focaccia-qemu-732c919cf04c0aaf1b092238e8b84cdb7adf657a.zip
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>
Diffstat (limited to 'tests/libqos/i2c.c')
0 files changed, 0 insertions, 0 deletions