diff options
author | David Gibson | 2017-06-04 12:26:03 +0200 |
---|---|---|
committer | David Gibson | 2017-06-06 01:24:08 +0200 |
commit | fbf553971898aee18b5933d335e2fa3e74bb9be7 (patch) | |
tree | 2741d2ab19afb7099586f3777a5f63b5c24c793c /include/hw/ppc/spapr_drc.h | |
parent | spapr: Introduce DRC subclasses (diff) | |
download | qemu-fbf553971898aee18b5933d335e2fa3e74bb9be7.tar.gz qemu-fbf553971898aee18b5933d335e2fa3e74bb9be7.tar.xz qemu-fbf553971898aee18b5933d335e2fa3e74bb9be7.zip |
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>
Diffstat (limited to 'include/hw/ppc/spapr_drc.h')
-rw-r--r-- | include/hw/ppc/spapr_drc.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/hw/ppc/spapr_drc.h b/include/hw/ppc/spapr_drc.h index 969c16d885..e4a25c8aa1 100644 --- a/include/hw/ppc/spapr_drc.h +++ b/include/hw/ppc/spapr_drc.h @@ -230,9 +230,8 @@ sPAPRDRConnectorType spapr_drc_type(sPAPRDRConnector *drc); sPAPRDRConnector *spapr_dr_connector_new(Object *owner, const char *type, uint32_t id); -sPAPRDRConnector *spapr_dr_connector_by_index(uint32_t index); -sPAPRDRConnector *spapr_dr_connector_by_id(sPAPRDRConnectorType type, - uint32_t id); +sPAPRDRConnector *spapr_drc_by_index(uint32_t index); +sPAPRDRConnector *spapr_drc_by_id(const char *type, uint32_t id); int spapr_drc_populate_dt(void *fdt, int fdt_offset, Object *owner, uint32_t drc_type_mask); |