aboutsummaryrefslogtreecommitdiff
path: root/tests/libqos/i2c-omap.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-03-18 14:07:13 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-06-03 14:03:02 +0200
commit93c3fe2a349970aaba8d196b8c2cbcd7c472bb81 (patch)
tree1e72205ceacbe96fcc4f85966123f577639c21d1 /tests/libqos/i2c-omap.c
parent751a7a5d00b23e1977c0c082fe041efbde77d06c (diff)
downloadqemu-93c3fe2a349970aaba8d196b8c2cbcd7c472bb81.zip
qemu-93c3fe2a349970aaba8d196b8c2cbcd7c472bb81.tar.gz
qemu-93c3fe2a349970aaba8d196b8c2cbcd7c472bb81.tar.bz2
tests: convert OMAP i2c tests to qgraph
This way, pca9952-test and tmp105-test will run for every machine that exposes an i2c-bus. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/libqos/i2c-omap.c')
-rw-r--r--tests/libqos/i2c-omap.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/libqos/i2c-omap.c b/tests/libqos/i2c-omap.c
index f949564..9ae8214 100644
--- a/tests/libqos/i2c-omap.c
+++ b/tests/libqos/i2c-omap.c
@@ -187,25 +187,6 @@ void omap_i2c_init(OMAPI2C *s, QTestState *qts, uint64_t addr)
s->parent.qts = qts;
}
-I2CAdapter *omap_i2c_create(QTestState *qts, uint64_t addr)
-{
- OMAPI2C *s = g_malloc0(sizeof(*s));
-
- omap_i2c_init(s, qts, addr);
- return &s->parent;
-}
-
-void omap_i2c_free(I2CAdapter *i2c)
-{
- OMAPI2C *s;
-
- if (!i2c) {
- return;
- }
- s = container_of(i2c, OMAPI2C, parent);
- g_free(s);
-}
-
static void omap_i2c_register_nodes(void)
{
qos_node_create_driver("omap_i2c", NULL);