spapr: Make DRC get_index and get_type methods into plain functions
commit0b55aa91c976b30b527c123fb66d25f5db43d083
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 2 Jun 2017 03:49:20 +0000 (2 13:49 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 5 Jun 2017 22:53:24 +0000 (6 08:53 +1000)
treea7dbaf524ccba80cbfda61525ba8b59567db20c6
parent4f65ce00ab9b059ed1aadc18718760ffd0c60a68
spapr: Make DRC get_index and get_type methods into plain functions

These two methods only have one implementation, and the spec they're
implementing means any other implementation is unlikely, verging on
impossible.

So replace them with simple functions.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Tested-by: Daniel Barboza <danielhb@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