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
..
2016-10-04 13:28:07 +01:00
2017-06-02 11:33:53 +04:00
2017-06-05 10:09:14 +01:00
2017-06-06 10:00:34 +01:00
2017-06-02 05:54:43 +01:00
2017-06-02 14:07:53 +01:00
2016-05-18 15:04:27 +03:00
2017-01-27 18:07:59 +01:00
2017-06-05 10:09:14 +01:00
2017-06-07 11:16:22 +01:00
2017-05-18 10:01:08 +01:00
2017-05-30 14:15:04 +01:00
2016-01-29 15:07:25 +00:00
2017-06-06 08:53:24 +10:00
2017-06-05 10:09:14 +01:00
2017-06-04 18:42:55 +03:00
2017-06-04 18:42:55 +03:00
2016-10-28 18:17:24 +03:00
2017-05-30 14:15:04 +01:00
2017-06-05 10:09:14 +01:00