diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-07-01 05:25:15 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:52 -0400 |
commit | 34a991587a5cc9f78960c2c9beea217866458c41 (patch) | |
tree | 824bfb5d50705223339e2bd3369ae3194f2eece3 /drivers/scsi/isci/phy.h | |
parent | 89a7301f21fb00e753089671eb9e4132aab8ea08 (diff) |
isci: kill 'get/set' macros
Most of these simple dereference macros are longer than their open coded
equivalent. Deleting enum sci_controller_mode is thrown in for good
measure.
Reported-by: Christoph Hellwig <hch@lst.de>
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.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/scsi/isci/phy.h b/drivers/scsi/isci/phy.h index 5d2c1b4906a3..67699c8e321c 100644 --- a/drivers/scsi/isci/phy.h +++ b/drivers/scsi/isci/phy.h | |||
@@ -440,23 +440,6 @@ enum sci_phy_states { | |||
440 | SCI_PHY_FINAL, | 440 | SCI_PHY_FINAL, |
441 | }; | 441 | }; |
442 | 442 | ||
443 | /** | ||
444 | * sci_phy_get_index() - | ||
445 | * | ||
446 | * This macro returns the phy index for the specified phy | ||
447 | */ | ||
448 | #define sci_phy_get_index(phy) \ | ||
449 | ((phy)->phy_index) | ||
450 | |||
451 | /** | ||
452 | * sci_phy_get_controller() - This macro returns the controller for this | ||
453 | * phy | ||
454 | * | ||
455 | * | ||
456 | */ | ||
457 | #define sci_phy_get_controller(phy) \ | ||
458 | (sci_port_get_controller((phy)->owning_port)) | ||
459 | |||
460 | void sci_phy_construct( | 443 | void sci_phy_construct( |
461 | struct isci_phy *iphy, | 444 | struct isci_phy *iphy, |
462 | struct isci_port *iport, | 445 | struct isci_port *iport, |