]> Pileus Git - ~andy/linux/blobdiff - drivers/scsi/isci/port_config.c
isci: kill 'get/set' macros
[~andy/linux] / drivers / scsi / isci / port_config.c
index c8b16db6bbde9afa3ba8526213c1019d8f2271f9..486b113c634a4810652f11a4aa197c551a07c390 100644 (file)
@@ -367,10 +367,10 @@ static void sci_mpc_agent_link_up(struct isci_host *ihost,
        if (!iport)
                return;
 
-       port_agent->phy_ready_mask |= (1 << sci_phy_get_index(iphy));
+       port_agent->phy_ready_mask |= (1 << iphy->phy_index);
        sci_port_link_up(iport, iphy);
-       if ((iport->active_phy_mask & (1 << sci_phy_get_index(iphy))))
-               port_agent->phy_configured_mask |= (1 << sci_phy_get_index(iphy));
+       if ((iport->active_phy_mask & (1 << iphy->phy_index)))
+               port_agent->phy_configured_mask |= (1 << iphy->phy_index);
 }
 
 /**
@@ -404,10 +404,8 @@ static void sci_mpc_agent_link_down(
                 * rebuilding the port with the phys that remain in the ready
                 * state.
                 */
-               port_agent->phy_ready_mask &=
-                       ~(1 << sci_phy_get_index(iphy));
-               port_agent->phy_configured_mask &=
-                       ~(1 << sci_phy_get_index(iphy));
+               port_agent->phy_ready_mask &= ~(1 << iphy->phy_index);
+               port_agent->phy_configured_mask &= ~(1 << iphy->phy_index);
 
                /*
                 * Check to see if there are more phys waiting to be
@@ -643,7 +641,7 @@ static void sci_apc_agent_link_down(
        struct isci_port *iport,
        struct isci_phy *iphy)
 {
-       port_agent->phy_ready_mask &= ~(1 << sci_phy_get_index(iphy));
+       port_agent->phy_ready_mask &= ~(1 << iphy->phy_index);
 
        if (!iport)
                return;