aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-12-18 16:34:43 -0500
committerJeff Garzik <jeff@garzik.org>2008-01-23 05:24:14 -0500
commit0dc36888d4422140f9eaf50f24953ec109f750a3 (patch)
tree80253b1831849e4063b73c31c15011c5e4c48404 /drivers/ata/libata-eh.c
parent537b53c1692960b8b3b0324e886fbe48cb9e5c00 (diff)
libata: rename ATA_PROT_ATAPI_* to ATAPI_PROT_*
ATA_PROT_ATAPI_* are ugly and naming schemes between ATA_PROT_* and ATA_PROT_ATAPI_* are inconsistent causing confusion. Rename them to ATAPI_PROT_* and make them consistent with ATA counterpart. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r--drivers/ata/libata-eh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 1bc1acf3bbbb..419552603a16 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -1299,10 +1299,10 @@ static unsigned int atapi_eh_request_sense(struct ata_queued_cmd *qc)
1299 1299
1300 /* is it pointless to prefer PIO for "safety reasons"? */ 1300 /* is it pointless to prefer PIO for "safety reasons"? */
1301 if (ap->flags & ATA_FLAG_PIO_DMA) { 1301 if (ap->flags & ATA_FLAG_PIO_DMA) {
1302 tf.protocol = ATA_PROT_ATAPI_DMA; 1302 tf.protocol = ATAPI_PROT_DMA;
1303 tf.feature |= ATAPI_PKT_DMA; 1303 tf.feature |= ATAPI_PKT_DMA;
1304 } else { 1304 } else {
1305 tf.protocol = ATA_PROT_ATAPI; 1305 tf.protocol = ATAPI_PROT_PIO;
1306 tf.lbam = SCSI_SENSE_BUFFERSIZE; 1306 tf.lbam = SCSI_SENSE_BUFFERSIZE;
1307 tf.lbah = 0; 1307 tf.lbah = 0;
1308 } 1308 }
@@ -1979,8 +1979,8 @@ static void ata_eh_link_report(struct ata_link *link)
1979 [ATA_PROT_PIO] = "pio", 1979 [ATA_PROT_PIO] = "pio",
1980 [ATA_PROT_DMA] = "dma", 1980 [ATA_PROT_DMA] = "dma",
1981 [ATA_PROT_NCQ] = "ncq", 1981 [ATA_PROT_NCQ] = "ncq",
1982 [ATA_PROT_ATAPI] = "pio", 1982 [ATAPI_PROT_PIO] = "pio",
1983 [ATA_PROT_ATAPI_DMA] = "dma", 1983 [ATAPI_PROT_DMA] = "dma",
1984 }; 1984 };
1985 1985
1986 snprintf(data_buf, sizeof(data_buf), " %s %u %s", 1986 snprintf(data_buf, sizeof(data_buf), " %s %u %s",