diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-18 15:59:42 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-06-03 14:03:02 +0200 |
commit | 8130dbcbcda15b3fe5ae1da76bf48868c4ce90fb (patch) | |
tree | 4a8e342c7b0fcd09216184546e953090b4a360d3 /tests/libqos/i2c-imx.c | |
parent | 93c3fe2a349970aaba8d196b8c2cbcd7c472bb81 (diff) | |
download | qemu-8130dbcbcda15b3fe5ae1da76bf48868c4ce90fb.zip qemu-8130dbcbcda15b3fe5ae1da76bf48868c4ce90fb.tar.gz qemu-8130dbcbcda15b3fe5ae1da76bf48868c4ce90fb.tar.bz2 |
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/i2c-imx.c')
-rw-r--r-- | tests/libqos/i2c-imx.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/libqos/i2c-imx.c b/tests/libqos/i2c-imx.c index 86d84a7..f33ece5 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); |