diff options
author | Fam Zheng <famz@redhat.com> | 2017-07-14 10:14:54 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-14 12:04:42 +0200 |
commit | 1b6b7d109ea53157525ad787802e45773fb7becb (patch) | |
tree | 05d588b41ddbed6fa9fa2c06d954840628078f01 /hw/s390x | |
parent | 75ab905383ea92d1c44cdd07e0f9fd509d51c9cc (diff) | |
download | qemu-1b6b7d109ea53157525ad787802e45773fb7becb.zip qemu-1b6b7d109ea53157525ad787802e45773fb7becb.tar.gz qemu-1b6b7d109ea53157525ad787802e45773fb7becb.tar.bz2 |
qdev: Add const qualifier to PropertyInfo definitions
The remaining non-const ones are in e1000e which modifies description at
runtime. They can be addressed separatedly.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170714021509.23681-6-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/s390x')
-rw-r--r-- | hw/s390x/css.c | 4 | ||||
-rw-r--r-- | hw/s390x/s390-pci-bus.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/hw/s390x/css.c b/hw/s390x/css.c index d67fffa..cd0b776 100644 --- a/hw/s390x/css.c +++ b/hw/s390x/css.c @@ -2095,7 +2095,7 @@ out: g_free(str); } -PropertyInfo css_devid_propinfo = { +const PropertyInfo css_devid_propinfo = { .name = "str", .description = "Identifier of an I/O device in the channel " "subsystem, example: fe.1.23ab", @@ -2103,7 +2103,7 @@ PropertyInfo css_devid_propinfo = { .set = set_css_devid, }; -PropertyInfo css_devid_ro_propinfo = { +const PropertyInfo css_devid_ro_propinfo = { .name = "str", .description = "Read-only identifier of an I/O device in the channel " "subsystem, example: fe.1.23ab", diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c index 903b3ca..af702f8 100644 --- a/hw/s390x/s390-pci-bus.c +++ b/hw/s390x/s390-pci-bus.c @@ -1015,7 +1015,7 @@ static void s390_pci_set_fid(Object *obj, Visitor *v, const char *name, zpci->fid_defined = true; } -static PropertyInfo s390_pci_fid_propinfo = { +static const PropertyInfo s390_pci_fid_propinfo = { .name = "zpci_fid", .get = s390_pci_get_fid, .set = s390_pci_set_fid, |