aboutsummaryrefslogtreecommitdiff
path: root/tests/pca9552-test.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/pca9552-test.c
parentc4f00daa5b390a74f13a271e7237e173c527bbce (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/pca9552-test.c')
-rw-r--r--tests/pca9552-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pca9552-test.c b/tests/pca9552-test.c
index 89b4445e29..f9509324e2 100644
--- a/tests/pca9552-test.c
+++ b/tests/pca9552-test.c
@@ -96,7 +96,7 @@ int main(int argc, char **argv)
if (s) {
qtest_quit(s);
}
- g_free(i2c);
+ omap_i2c_free(i2c);
return ret;
}