diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-03-28 18:01:36 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-06-18 15:14:37 +0200 |
commit | 3cb75a7cba7e808c0ae007e4d86750849642304e (patch) | |
tree | a4e645a38566e0540d9654fa33e61ac1106968a8 /hw/intel-hda.c | |
parent | 2f262e06f01a38cb8a218b7c5ad71233883a6b55 (diff) |
qdev: Move bus properties to a separate global
Simple code movement in order to simplify future refactoring.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/intel-hda.c')
-rw-r--r-- | hw/intel-hda.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hw/intel-hda.c b/hw/intel-hda.c index bb11af286a..0994f6b2a5 100644 --- a/hw/intel-hda.c +++ b/hw/intel-hda.c @@ -29,13 +29,15 @@ /* --------------------------------------------------------------------- */ /* hda bus */ +static Property hda_props[] = { + DEFINE_PROP_UINT32("cad", HDACodecDevice, cad, -1), + DEFINE_PROP_END_OF_LIST() +}; + static struct BusInfo hda_codec_bus_info = { .name = "HDA", .size = sizeof(HDACodecBus), - .props = (Property[]) { - DEFINE_PROP_UINT32("cad", HDACodecDevice, cad, -1), - DEFINE_PROP_END_OF_LIST() - } + .props = hda_props, }; void hda_codec_bus_init(DeviceState *dev, HDACodecBus *bus, |