summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/phy.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-05-12 06:00:31 -0700
committerDan Williams <dan.j.williams@intel.com>2011-07-03 04:04:48 -0700
commit4f20ef4f57aa52fd3356c143a8f3d2bd18dc61fc (patch)
tree27c2c01305cad71eb6ebaf96e67ad3ce8d834c30 /drivers/scsi/isci/phy.h
parent5b1d4af25186f5d23dae7a538d8472dacd9486c8 (diff)
downloadblackbird-op-linux-4f20ef4f57aa52fd3356c143a8f3d2bd18dc61fc.tar.gz
blackbird-op-linux-4f20ef4f57aa52fd3356c143a8f3d2bd18dc61fc.zip
isci: clarify phy to port lookups
While cleaning up the driver it is very tempting to convert scic_sds_get_* macros to their open coded equivalent. They are all just pointer dereferences *except* scic_sds_phy_get_port() which returns NULL if the phy is assigned to the dummy port. Clarify this by renaming it to phy_get_non_dummy_port(). Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/phy.h')
-rw-r--r--drivers/scsi/isci/phy.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/isci/phy.h b/drivers/scsi/isci/phy.h
index 57708550a186..7694ec4d76b5 100644
--- a/drivers/scsi/isci/phy.h
+++ b/drivers/scsi/isci/phy.h
@@ -524,8 +524,7 @@ void scic_sds_phy_construct(
struct scic_sds_port *owning_port,
u8 phy_index);
-struct scic_sds_port *scic_sds_phy_get_port(
- struct scic_sds_phy *this_phy);
+struct scic_sds_port *phy_get_non_dummy_port(struct scic_sds_phy *sci_phy);
void scic_sds_phy_set_port(
struct scic_sds_phy *this_phy,
OpenPOWER on IntegriCloud