diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2007-11-05 14:51:17 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:22:41 -0500 |
commit | 5929faf3334f4c69f3bb02be59d7c127e0cefa1f (patch) | |
tree | d82d79f1e2aaea1306e6e4888590a6755c99d7d7 /drivers/scsi/aic94xx/aic94xx_scb.c | |
parent | e5a69e27cc193f98c9a5a9086e3bf85528170623 (diff) |
[SCSI] libsas: Convert sas_proto users to sas_protocol
sparse complains about the mixing of enums in libsas. Since the
underlying numeric values of both enums are the same, combine them
to get rid of the warning.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aic94xx/aic94xx_scb.c')
-rw-r--r-- | drivers/scsi/aic94xx/aic94xx_scb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_scb.c b/drivers/scsi/aic94xx/aic94xx_scb.c index db6ab1a3b81e..0febad4dd75f 100644 --- a/drivers/scsi/aic94xx/aic94xx_scb.c +++ b/drivers/scsi/aic94xx/aic94xx_scb.c | |||
@@ -788,12 +788,12 @@ void asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc) | |||
788 | 788 | ||
789 | /* initiator port settings are in the hi nibble */ | 789 | /* initiator port settings are in the hi nibble */ |
790 | if (phy->sas_phy.role == PHY_ROLE_INITIATOR) | 790 | if (phy->sas_phy.role == PHY_ROLE_INITIATOR) |
791 | control_phy->port_type = SAS_PROTO_ALL << 4; | 791 | control_phy->port_type = SAS_PROTOCOL_ALL << 4; |
792 | else if (phy->sas_phy.role == PHY_ROLE_TARGET) | 792 | else if (phy->sas_phy.role == PHY_ROLE_TARGET) |
793 | control_phy->port_type = SAS_PROTO_ALL; | 793 | control_phy->port_type = SAS_PROTOCOL_ALL; |
794 | else | 794 | else |
795 | control_phy->port_type = | 795 | control_phy->port_type = |
796 | (SAS_PROTO_ALL << 4) | SAS_PROTO_ALL; | 796 | (SAS_PROTOCOL_ALL << 4) | SAS_PROTOCOL_ALL; |
797 | 797 | ||
798 | /* link reset retries, this should be nominal */ | 798 | /* link reset retries, this should be nominal */ |
799 | control_phy->link_reset_retries = 10; | 799 | control_phy->link_reset_retries = 10; |