diff options
author | Paolo Bonzini | 2019-03-18 15:59:42 +0100 |
---|---|---|
committer | Paolo Bonzini | 2019-06-03 14:03:02 +0200 |
commit | 8130dbcbcda15b3fe5ae1da76bf48868c4ce90fb (patch) | |
tree | 4a8e342c7b0fcd09216184546e953090b4a360d3 /tests/libqos | |
parent | tests: convert OMAP i2c tests to qgraph (diff) | |
download | qemu-8130dbcbcda15b3fe5ae1da76bf48868c4ce90fb.tar.gz qemu-8130dbcbcda15b3fe5ae1da76bf48868c4ce90fb.tar.xz qemu-8130dbcbcda15b3fe5ae1da76bf48868c4ce90fb.zip |
tests: convert ds1338-test to qtest
This way, ds1338-test will run for every machine that exposes
an i2c-bus.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/libqos')
-rw-r--r-- | tests/libqos/i2c-imx.c | 19 | ||||
-rw-r--r-- | tests/libqos/i2c.h | 2 |
2 files changed, 0 insertions, 21 deletions
diff --git a/tests/libqos/i2c-imx.c b/tests/libqos/i2c-imx.c index 86d84a79e6..f33ece55a3 100644 --- a/tests/libqos/i2c-imx.c +++ b/tests/libqos/i2c-imx.c @@ -207,25 +207,6 @@ void imx_i2c_init(IMXI2C *s, QTestState *qts, uint64_t addr) s->parent.qts = qts; } -I2CAdapter *imx_i2c_create(QTestState *qts, uint64_t addr) -{ - IMXI2C *s = g_malloc0(sizeof(*s)); - - imx_i2c_init(s, qts, addr); - return &s->parent; -} - -void imx_i2c_free(I2CAdapter *i2c) -{ - IMXI2C *s; - - if (!i2c) { - return; - } - s = container_of(i2c, IMXI2C, parent); - g_free(s); -} - static void imx_i2c_register_nodes(void) { qos_node_create_driver("imx.i2c", NULL); diff --git a/tests/libqos/i2c.h b/tests/libqos/i2c.h index 66b0e0d06e..2c8cc3eab5 100644 --- a/tests/libqos/i2c.h +++ b/tests/libqos/i2c.h @@ -75,7 +75,5 @@ typedef struct IMXI2C { } IMXI2C; void imx_i2c_init(IMXI2C *s, QTestState *qts, uint64_t addr); -I2CAdapter *imx_i2c_create(QTestState *qts, uint64_t addr); -void imx_i2c_free(I2CAdapter *i2c); #endif |