diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-18 17:12:25 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-06-03 14:03:02 +0200 |
commit | 732c919cf04c0aaf1b092238e8b84cdb7adf657a (patch) | |
tree | 6b43291940e84e3c850e48d6987ca08c67c4d309 /tests/tmp105-test.c | |
parent | c4f00daa5b390a74f13a271e7237e173c527bbce (diff) |
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/tmp105-test.c')
-rw-r--r-- | tests/tmp105-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tmp105-test.c b/tests/tmp105-test.c index c86d2571e2..25ea05f5fd 100644 --- a/tests/tmp105-test.c +++ b/tests/tmp105-test.c @@ -122,7 +122,7 @@ int main(int argc, char **argv) ret = g_test_run(); qtest_quit(s); - g_free(i2c); + omap_i2c_free(i2c); return ret; } |