aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_it821x.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-01-02 06:18:49 -0500
committerJeff Garzik <jeff@garzik.org>2007-02-09 17:39:30 -0500
commita0cf733b333eeeafb7324e2897448006c693c26c (patch)
tree9a08b3e197cf4d1d17c39ed93cbcdd26fd722316 /drivers/ata/pata_it821x.c
parentcdf56bcf14b9d441777703eef95eef807e4136ec (diff)
libata: straighten out ATA_ID_* constants
* Kill _OFS suffixes in ATA_ID_{SERNO|FW_REV|PROD}_OFS for consistency with other ATA_ID_* constants. * Kill ATA_SERNO_LEN * Add and use ATA_ID_SERNO_LEN, ATA_ID_FW_REV_LEN and ATA_ID_PROD_LEN. This change also makes ata_device_blacklisted() use proper length for fwrev. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pata_it821x.c')
-rw-r--r--drivers/ata/pata_it821x.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c
index e8afd486434a..c84dfaede89c 100644
--- a/drivers/ata/pata_it821x.c
+++ b/drivers/ata/pata_it821x.c
@@ -531,15 +531,14 @@ static int it821x_smart_set_mode(struct ata_port *ap, struct ata_device **unused
531 531
532static void it821x_dev_config(struct ata_port *ap, struct ata_device *adev) 532static void it821x_dev_config(struct ata_port *ap, struct ata_device *adev)
533{ 533{
534 unsigned char model_num[40]; 534 unsigned char model_num[ATA_ID_PROD_LEN];
535 char *s; 535 char *s;
536 unsigned int len; 536 unsigned int len;
537 537
538 /* This block ought to be a library routine as it is in several 538 /* This block ought to be a library routine as it is in several
539 drivers now */ 539 drivers now */
540 540
541 ata_id_string(adev->id, model_num, ATA_ID_PROD_OFS, 541 ata_id_string(adev->id, model_num, ATA_ID_PROD, sizeof(model_num));
542 sizeof(model_num));
543 s = &model_num[0]; 542 s = &model_num[0];
544 len = strnlen(s, sizeof(model_num)); 543 len = strnlen(s, sizeof(model_num));
545 544