aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-scsi.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-02-12 20:02:46 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-02-20 04:54:22 -0500
commit6a62a04d4705df4f9f9bee39e889b9e920eeca47 (patch)
treeea1b13e887740b69f7cd24e602802599c3fb8e76 /drivers/scsi/libata-scsi.c
parent5b2ffed906a3ebd4e52a5bbef06b99a517c53e4b (diff)
[PATCH] libata: rename ata_dev_id_[c_]string()
This patch renames ata_dev_id_[c_]string() to ata_id_[c_]string(). All other functions which read data from ATA ID data start with ata_id and those two function names were getting too long. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r--drivers/scsi/libata-scsi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
index 86da46502b3e..538784e65cdc 100644
--- a/drivers/scsi/libata-scsi.c
+++ b/drivers/scsi/libata-scsi.c
@@ -1567,8 +1567,8 @@ unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf,
1567 1567
1568 if (buflen > 35) { 1568 if (buflen > 35) {
1569 memcpy(&rbuf[8], "ATA ", 8); 1569 memcpy(&rbuf[8], "ATA ", 8);
1570 ata_dev_id_string(args->id, &rbuf[16], ATA_ID_PROD_OFS, 16); 1570 ata_id_string(args->id, &rbuf[16], ATA_ID_PROD_OFS, 16);
1571 ata_dev_id_string(args->id, &rbuf[32], ATA_ID_FW_REV_OFS, 4); 1571 ata_id_string(args->id, &rbuf[32], ATA_ID_FW_REV_OFS, 4);
1572 if (rbuf[32] == 0 || rbuf[32] == ' ') 1572 if (rbuf[32] == 0 || rbuf[32] == ' ')
1573 memcpy(&rbuf[32], "n/a ", 4); 1573 memcpy(&rbuf[32], "n/a ", 4);
1574 } 1574 }
@@ -1642,8 +1642,8 @@ unsigned int ata_scsiop_inq_80(struct ata_scsi_args *args, u8 *rbuf,
1642 memcpy(rbuf, hdr, sizeof(hdr)); 1642 memcpy(rbuf, hdr, sizeof(hdr));
1643 1643
1644 if (buflen > (ATA_SERNO_LEN + 4 - 1)) 1644 if (buflen > (ATA_SERNO_LEN + 4 - 1))
1645 ata_dev_id_string(args->id, (unsigned char *) &rbuf[4], 1645 ata_id_string(args->id, (unsigned char *) &rbuf[4],
1646 ATA_ID_SERNO_OFS, ATA_SERNO_LEN); 1646 ATA_ID_SERNO_OFS, ATA_SERNO_LEN);
1647 1647
1648 return 0; 1648 return 0;
1649} 1649}
@@ -1806,8 +1806,8 @@ static int ata_dev_supports_fua(u16 *id)
1806 if (!ata_id_has_fua(id)) 1806 if (!ata_id_has_fua(id))
1807 return 0; 1807 return 0;
1808 1808
1809 ata_dev_id_c_string(id, model, ATA_ID_PROD_OFS, sizeof(model)); 1809 ata_id_c_string(id, model, ATA_ID_PROD_OFS, sizeof(model));
1810 ata_dev_id_c_string(id, fw, ATA_ID_FW_REV_OFS, sizeof(fw)); 1810 ata_id_c_string(id, fw, ATA_ID_FW_REV_OFS, sizeof(fw));
1811 1811
1812 if (strcmp(model, "Maxtor")) 1812 if (strcmp(model, "Maxtor"))
1813 return 1; 1813 return 1;