mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
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>
This commit is contained in:
parent
2f262e06f0
commit
3cb75a7cba
9 changed files with 66 additions and 47 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue