]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr_pci.c
spapr: Clean up spapr_dr_connector_by_*()
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 4 Jun 2017 10:26:03 +0000 (20:26 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 5 Jun 2017 23:24:08 +0000 (09:24 +1000)
commitfbf553971898aee18b5933d335e2fa3e74bb9be7
tree2741d2ab19afb7099586f3777a5f63b5c24c793c
parent2d33581899edcaba9b7e48def11c4ddfcd2423ec
spapr: Clean up spapr_dr_connector_by_*()

 * Change names to something less ludicrously verbose
 * Now that we have QOM subclasses for the different DRC types, use a QOM
   typename instead of a PAPR type value parameter

The latter allows removal of the get_type_shift() helper.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/spapr.c
hw/ppc/spapr_drc.c
hw/ppc/spapr_events.c
hw/ppc/spapr_pci.c
include/hw/ppc/spapr_drc.h