diff options
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 12 |
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; |