]> git.baikalelectronics.ru Git - kernel.git/commit
isci: clarify phy to port lookups
authorDan Williams <dan.j.williams@intel.com>
Thu, 12 May 2011 13:00:31 +0000 (06:00 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:48 +0000 (04:04 -0700)
commitc9f3d457a3ec6bfd46f948f5fbfcc4e86f4ca198
tree27c2c01305cad71eb6ebaf96e67ad3ce8d834c30
parent89bc9ade9b12e76f5d0d19752f1607ca81cd1022
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>
drivers/scsi/isci/host.c
drivers/scsi/isci/phy.c
drivers/scsi/isci/phy.h
drivers/scsi/isci/port.c
drivers/scsi/isci/port_config.c