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 fde41b2323..e7927699ce 100644 --- a/hw/sensor/tmp421.c +++ b/hw/sensor/tmp421.c @@ -51,7 +51,7 @@ static const DeviceInfo devices[] = { struct TMP421State { /*< private >*/ - I2CSlave i2c; + I2CSlave parent_obj; /*< public >*/ int16_t temperature[4]; @@ -298,7 +298,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() } }; @@ -334,7 +334,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
