diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2019-03-22 16:17:14 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-06-12 10:41:49 +1000 |
commit | 9d2134d81d40a1b2a4956e173fa228207bfffbbc (patch) | |
tree | 3fa14d3a985213c3d35ad5d6a1519772f6ab6a5f /hw/Kconfig | |
parent | 4782a8bb81f6d3ac815fb0f603daae4e6030dfa1 (diff) | |
download | qemu-9d2134d81d40a1b2a4956e173fa228207bfffbbc.zip qemu-9d2134d81d40a1b2a4956e173fa228207bfffbbc.tar.gz qemu-9d2134d81d40a1b2a4956e173fa228207bfffbbc.tar.bz2 |
spapr: Clean up device tree construction for PCI devices
spapr_create_pci_child_dt() is a trivial wrapper around
spapr_populate_pci_child_dt(), but is the latter's only caller. So fold
them together into spapr_dt_pci_device(), which closer matches our modern
naming convention.
While there, make a number of cleanups to the function itself. This is
mostly using more temporary locals to avoid awkwardly long lines, and in
some cases avoiding double reads of PCI config space variables.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/Kconfig')
0 files changed, 0 insertions, 0 deletions