David Gibson f224d35be9 spapr: Clean up DR entity sense handling
DRC classes have an entity_sense method to determine (in a specific PAPR
sense) the presence or absence of a device plugged into a DRC.  However,
we only have one implementation of the method, which explicitly tests for
different DRC types.  This changes it to instead have different method
implementations for the two cases: "logical" and "physical" DRCs.

While we're at it, the entity sense method always returns RTAS_OUT_SUCCESS,
and the interesting value is returned via pass-by-reference.  Simplify this
to directly return the value we care about

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>
2017-06-08 14:38:26 +10:00
..
2017-05-10 12:31:19 -04:00
2017-04-25 19:17:25 +08:00
2017-05-19 12:29:01 +02:00
2017-06-06 14:30:06 +01:00
2017-05-12 12:02:48 +02:00
2017-01-24 13:10:35 -08:00
2017-05-17 17:30:45 +01:00
2017-02-28 20:47:50 +01:00