summaryrefslogtreecommitdiff
path: root/hw/i2c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-06-27 12:03:44 +0100
committerAndreas Färber <afaerber@suse.de>2013-07-23 00:37:32 +0200
commit6783ecf144c80f526c844cade3bf5593fba9e446 (patch)
treedfc0d138aceb0bc5f35795f62b77ec871c572780 /hw/i2c
parent3464700f6aecb3e2aa9098839d90672d6b3fa974 (diff)
downloadqemu-6783ecf144c80f526c844cade3bf5593fba9e446.tar.gz
qemu-6783ecf144c80f526c844cade3bf5593fba9e446.tar.bz2
qemu-6783ecf144c80f526c844cade3bf5593fba9e446.zip
hw: Avoid use of QOM type name macros in VMStateDescriptions
The name field in a VMStateDescription is part of the migration state versioning, so changing it will break migration. It's therefore a bad idea to use a QOM typename macro to initialize it, because in general we're free to rename QOM types as part of code refactoring and cleanup. For the handful of devices that were doing this by mistake, replace the QOM typenames with the corresponding literal strings. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> [AF: Use TYPE_PVSCSI for TypeInfo instead] Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/i2c')
-rw-r--r--hw/i2c/exynos4210_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i2c/exynos4210_i2c.c b/hw/i2c/exynos4210_i2c.c
index 52bffa5010..42f5e89496 100644
--- a/hw/i2c/exynos4210_i2c.c
+++ b/hw/i2c/exynos4210_i2c.c
@@ -271,7 +271,7 @@ static const MemoryRegionOps exynos4210_i2c_ops = {
};
static const VMStateDescription exynos4210_i2c_vmstate = {
- .name = TYPE_EXYNOS4_I2C,
+ .name = "exynos4210.i2c",
.version_id = 1,
.minimum_version_id = 1,
.fields = (VMStateField[]) {