Follow the QOM convention for the embedded I2CSlave, matching the other hw/sensor I2C devices. No functional change.
Signed-off-by: Emmanuel Blot <[email protected]> --- hw/sensor/tmp421.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/sensor/tmp421.c b/hw/sensor/tmp421.c index 84c6ebec41..55e261a090 100644 --- a/hw/sensor/tmp421.c +++ b/hw/sensor/tmp421.c @@ -52,7 +52,7 @@ static const DeviceInfo devices[] = { struct TMP421State { /*< private >*/ - I2CSlave i2c; + I2CSlave parent_obj; /*< public >*/ int16_t temperature[4]; @@ -299,7 +299,7 @@ static const VMStateDescription vmstate_tmp421 = { VMSTATE_UINT8(status, TMP421State), VMSTATE_UINT8(rate, TMP421State), VMSTATE_INT16_ARRAY(temperature, TMP421State, 4), - VMSTATE_I2C_SLAVE(i2c, TMP421State), + VMSTATE_I2C_SLAVE(parent_obj, TMP421State), VMSTATE_END_OF_LIST() } }; @@ -335,7 +335,7 @@ static void tmp421_realize(DeviceState *dev, Error **errp) { TMP421State *s = TMP421(dev); - tmp421_reset(&s->i2c); + tmp421_reset(&s->parent_obj); } static void tmp421_class_init(ObjectClass *klass, const void *data) -- 2.53.0-Meta
