--- qemu/hw/i2c.c 2018/04/24 18:27:54 1.1.1.6 +++ qemu/hw/i2c.c 2018/04/24 19:26:38 1.1.1.8 @@ -4,7 +4,7 @@ * Copyright (c) 2007 CodeSourcery. * Written by Paul Brook * - * This code is licenced under the LGPL. + * This code is licensed under the LGPL. */ #include "i2c.h" @@ -84,7 +84,7 @@ int i2c_start_transfer(i2c_bus *bus, uin DeviceState *qdev; i2c_slave *slave = NULL; - QLIST_FOREACH(qdev, &bus->qbus.children, sibling) { + QTAILQ_FOREACH(qdev, &bus->qbus.children, sibling) { i2c_slave *candidate = I2C_SLAVE_FROM_QDEV(qdev); if (candidate->address == address) { slave = candidate;