diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-05-12 09:00:31 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:48 -0400 |
commit | 4f20ef4f57aa52fd3356c143a8f3d2bd18dc61fc (patch) | |
tree | 27c2c01305cad71eb6ebaf96e67ad3ce8d834c30 /drivers/scsi/isci/port_config.c | |
parent | 5b1d4af25186f5d23dae7a538d8472dacd9486c8 (diff) |
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/port_config.c')
-rw-r--r-- | drivers/scsi/isci/port_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/isci/port_config.c b/drivers/scsi/isci/port_config.c index 028ffa370c90..ca76f493c30d 100644 --- a/drivers/scsi/isci/port_config.c +++ b/drivers/scsi/isci/port_config.c | |||
@@ -353,7 +353,7 @@ static void scic_sds_mpc_agent_timeout_handler(void *object) | |||
353 | 353 | ||
354 | if (configure_phy_mask & (1 << index)) { | 354 | if (configure_phy_mask & (1 << index)) { |
355 | port_agent->link_up_handler(scic, port_agent, | 355 | port_agent->link_up_handler(scic, port_agent, |
356 | scic_sds_phy_get_port(sci_phy), | 356 | phy_get_non_dummy_port(sci_phy), |
357 | sci_phy); | 357 | sci_phy); |
358 | } | 358 | } |
359 | } | 359 | } |