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/port_config.c | |
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/port_config.c')
-rw-r--r-- | drivers/scsi/isci/port_config.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/scsi/isci/port_config.c b/drivers/scsi/isci/port_config.c index c8b16db6bbde..486b113c634a 100644 --- a/drivers/scsi/isci/port_config.c +++ b/drivers/scsi/isci/port_config.c | |||
@@ -367,10 +367,10 @@ static void sci_mpc_agent_link_up(struct isci_host *ihost, | |||
367 | if (!iport) | 367 | if (!iport) |
368 | return; | 368 | return; |
369 | 369 | ||
370 | port_agent->phy_ready_mask |= (1 << sci_phy_get_index(iphy)); | 370 | port_agent->phy_ready_mask |= (1 << iphy->phy_index); |
371 | sci_port_link_up(iport, iphy); | 371 | sci_port_link_up(iport, iphy); |
372 | if ((iport->active_phy_mask & (1 << sci_phy_get_index(iphy)))) | 372 | if ((iport->active_phy_mask & (1 << iphy->phy_index))) |
373 | port_agent->phy_configured_mask |= (1 << sci_phy_get_index(iphy)); | 373 | port_agent->phy_configured_mask |= (1 << iphy->phy_index); |
374 | } | 374 | } |
375 | 375 | ||
376 | /** | 376 | /** |
@@ -404,10 +404,8 @@ static void sci_mpc_agent_link_down( | |||
404 | * rebuilding the port with the phys that remain in the ready | 404 | * rebuilding the port with the phys that remain in the ready |
405 | * state. | 405 | * state. |
406 | */ | 406 | */ |
407 | port_agent->phy_ready_mask &= | 407 | port_agent->phy_ready_mask &= ~(1 << iphy->phy_index); |
408 | ~(1 << sci_phy_get_index(iphy)); | 408 | port_agent->phy_configured_mask &= ~(1 << iphy->phy_index); |
409 | port_agent->phy_configured_mask &= | ||
410 | ~(1 << sci_phy_get_index(iphy)); | ||
411 | 409 | ||
412 | /* | 410 | /* |
413 | * Check to see if there are more phys waiting to be | 411 | * Check to see if there are more phys waiting to be |
@@ -643,7 +641,7 @@ static void sci_apc_agent_link_down( | |||
643 | struct isci_port *iport, | 641 | struct isci_port *iport, |
644 | struct isci_phy *iphy) | 642 | struct isci_phy *iphy) |
645 | { | 643 | { |
646 | port_agent->phy_ready_mask &= ~(1 << sci_phy_get_index(iphy)); | 644 | port_agent->phy_ready_mask &= ~(1 << iphy->phy_index); |
647 | 645 | ||
648 | if (!iport) | 646 | if (!iport) |
649 | return; | 647 | return; |