aboutsummaryrefslogtreecommitdiff
path: root/hw/misc
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-08-28 16:02:32 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-06 18:41:32 +0400
commit3cad405babb461e3c70782c51415f0b64bc7540d (patch)
tree97b2207f7ce1aec97358abae4cd14984d18d5dab /hw/misc
parent107b59698f79b323c4d111c46eb9e3db6f9d258b (diff)
downloadqemu-3cad405babb461e3c70782c51415f0b64bc7540d.zip
qemu-3cad405babb461e3c70782c51415f0b64bc7540d.tar.gz
qemu-3cad405babb461e3c70782c51415f0b64bc7540d.tar.bz2
vmstate: replace DeviceState with VMStateIf
Replace DeviceState dependency with VMStateIf on vmstate API. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Acked-by: Halil Pasic <pasic@linux.ibm.com>
Diffstat (limited to 'hw/misc')
-rw-r--r--hw/misc/max111x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/max111x.c b/hw/misc/max111x.c
index a713149..211008c 100644
--- a/hw/misc/max111x.c
+++ b/hw/misc/max111x.c
@@ -146,7 +146,7 @@ static int max111x_init(SSISlave *d, int inputs)
s->input[7] = 0x80;
s->com = 0;
- vmstate_register(dev, -1, &vmstate_max111x, s);
+ vmstate_register(VMSTATE_IF(dev), -1, &vmstate_max111x, s);
return 0;
}