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/libsas | |
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/libsas')
-rw-r--r-- | drivers/scsi/libsas/sas_discover.c | 2 | ||||
-rw-r--r-- | drivers/scsi/libsas/sas_expander.c | 6 | ||||
-rw-r--r-- | drivers/scsi/libsas/sas_internal.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c index 5f3a0d7b18de..31b9af224243 100644 --- a/drivers/scsi/libsas/sas_discover.c +++ b/drivers/scsi/libsas/sas_discover.c | |||
@@ -98,7 +98,7 @@ static int sas_get_port_device(struct asd_sas_port *port) | |||
98 | dev->dev_type = SATA_PM; | 98 | dev->dev_type = SATA_PM; |
99 | else | 99 | else |
100 | dev->dev_type = SATA_DEV; | 100 | dev->dev_type = SATA_DEV; |
101 | dev->tproto = SATA_PROTO; | 101 | dev->tproto = SAS_PROTOCOL_SATA; |
102 | } else { | 102 | } else { |
103 | struct sas_identify_frame *id = | 103 | struct sas_identify_frame *id = |
104 | (struct sas_identify_frame *) dev->frame_rcvd; | 104 | (struct sas_identify_frame *) dev->frame_rcvd; |
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c index 8727436b222d..27674fe468f5 100644 --- a/drivers/scsi/libsas/sas_expander.c +++ b/drivers/scsi/libsas/sas_expander.c | |||
@@ -656,9 +656,9 @@ static struct domain_device *sas_ex_discover_end_dev( | |||
656 | sas_ex_get_linkrate(parent, child, phy); | 656 | sas_ex_get_linkrate(parent, child, phy); |
657 | 657 | ||
658 | #ifdef CONFIG_SCSI_SAS_ATA | 658 | #ifdef CONFIG_SCSI_SAS_ATA |
659 | if ((phy->attached_tproto & SAS_PROTO_STP) || phy->attached_sata_dev) { | 659 | if ((phy->attached_tproto & SAS_PROTOCOL_STP) || phy->attached_sata_dev) { |
660 | child->dev_type = SATA_DEV; | 660 | child->dev_type = SATA_DEV; |
661 | if (phy->attached_tproto & SAS_PROTO_STP) | 661 | if (phy->attached_tproto & SAS_PROTOCOL_STP) |
662 | child->tproto = phy->attached_tproto; | 662 | child->tproto = phy->attached_tproto; |
663 | if (phy->attached_sata_dev) | 663 | if (phy->attached_sata_dev) |
664 | child->tproto |= SATA_DEV; | 664 | child->tproto |= SATA_DEV; |
@@ -695,7 +695,7 @@ static struct domain_device *sas_ex_discover_end_dev( | |||
695 | } | 695 | } |
696 | } else | 696 | } else |
697 | #endif | 697 | #endif |
698 | if (phy->attached_tproto & SAS_PROTO_SSP) { | 698 | if (phy->attached_tproto & SAS_PROTOCOL_SSP) { |
699 | child->dev_type = SAS_END_DEV; | 699 | child->dev_type = SAS_END_DEV; |
700 | rphy = sas_end_device_alloc(phy->port); | 700 | rphy = sas_end_device_alloc(phy->port); |
701 | /* FIXME: error handling */ | 701 | /* FIXME: error handling */ |
diff --git a/drivers/scsi/libsas/sas_internal.h b/drivers/scsi/libsas/sas_internal.h index 2b8213b1832d..baa0666ffa80 100644 --- a/drivers/scsi/libsas/sas_internal.h +++ b/drivers/scsi/libsas/sas_internal.h | |||
@@ -45,7 +45,7 @@ | |||
45 | void sas_scsi_recover_host(struct Scsi_Host *shost); | 45 | void sas_scsi_recover_host(struct Scsi_Host *shost); |
46 | 46 | ||
47 | int sas_show_class(enum sas_class class, char *buf); | 47 | int sas_show_class(enum sas_class class, char *buf); |
48 | int sas_show_proto(enum sas_proto proto, char *buf); | 48 | int sas_show_proto(enum sas_protocol proto, char *buf); |
49 | int sas_show_linkrate(enum sas_linkrate linkrate, char *buf); | 49 | int sas_show_linkrate(enum sas_linkrate linkrate, char *buf); |
50 | int sas_show_oob_mode(enum sas_oob_mode oob_mode, char *buf); | 50 | int sas_show_oob_mode(enum sas_oob_mode oob_mode, char *buf); |
51 | 51 | ||