qdev: Make qdev_class_add_property() more flexible
commit0d5d5bc58b3b1af3b25411642537464bac1d0583
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 11 Dec 2020 22:05:22 +0000 (11 17:05 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 18 Dec 2020 20:20:17 +0000 (18 15:20 -0500)
tree9293b500dcfeb6483a38c8ea9cdab2ff1e92da60
parentf59c6d223def66df90c0b91415eb96d7ed5e058b
qdev: Make qdev_class_add_property() more flexible

Support Property.set_default and PropertyInfo.description even if
PropertyInfo.create is set.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20201211220529.2290218-26-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/qdev-properties.c