mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
75ab905383
commit
1b6b7d109e
9 changed files with 61 additions and 61 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue