diff options
author | Tejun Heo <htejun@gmail.com> | 2006-02-12 08:47:05 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-12 14:24:41 -0500 |
commit | 0bd3300ac9158b6ceef38fab6fb473765a40e77e (patch) | |
tree | 4973f3f26c12f0acacf6b7e643e7a4144046a0c7 | |
parent | 3d2ca91095f8ab6dc0cb925374eec62fa5336764 (diff) |
[PATCH] libata: make ata_dump_id() take @id instead of @dev
Make ata_dump_id() take @id instead of @dev. This is preparation for
splitting ata_dev_identify().
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
-rw-r--r-- | drivers/scsi/libata-core.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index d87854e199f6..a0b6ca3d1a0c 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -651,41 +651,41 @@ void ata_dev_select(struct ata_port *ap, unsigned int device, | |||
651 | 651 | ||
652 | /** | 652 | /** |
653 | * ata_dump_id - IDENTIFY DEVICE info debugging output | 653 | * ata_dump_id - IDENTIFY DEVICE info debugging output |
654 | * @dev: Device whose IDENTIFY DEVICE page we will dump | 654 | * @id: IDENTIFY DEVICE page to dump |
655 | * | 655 | * |
656 | * Dump selected 16-bit words from a detected device's | 656 | * Dump selected 16-bit words from the given IDENTIFY DEVICE |
657 | * IDENTIFY PAGE page. | 657 | * page. |
658 | * | 658 | * |
659 | * LOCKING: | 659 | * LOCKING: |
660 | * caller. | 660 | * caller. |
661 | */ | 661 | */ |
662 | 662 | ||
663 | static inline void ata_dump_id(const struct ata_device *dev) | 663 | static inline void ata_dump_id(const u16 *id) |
664 | { | 664 | { |
665 | DPRINTK("49==0x%04x " | 665 | DPRINTK("49==0x%04x " |
666 | "53==0x%04x " | 666 | "53==0x%04x " |
667 | "63==0x%04x " | 667 | "63==0x%04x " |
668 | "64==0x%04x " | 668 | "64==0x%04x " |
669 | "75==0x%04x \n", | 669 | "75==0x%04x \n", |
670 | dev->id[49], | 670 | id[49], |
671 | dev->id[53], | 671 | id[53], |
672 | dev->id[63], | 672 | id[63], |
673 | dev->id[64], | 673 | id[64], |
674 | dev->id[75]); | 674 | id[75]); |
675 | DPRINTK("80==0x%04x " | 675 | DPRINTK("80==0x%04x " |
676 | "81==0x%04x " | 676 | "81==0x%04x " |
677 | "82==0x%04x " | 677 | "82==0x%04x " |
678 | "83==0x%04x " | 678 | "83==0x%04x " |
679 | "84==0x%04x \n", | 679 | "84==0x%04x \n", |
680 | dev->id[80], | 680 | id[80], |
681 | dev->id[81], | 681 | id[81], |
682 | dev->id[82], | 682 | id[82], |
683 | dev->id[83], | 683 | id[83], |
684 | dev->id[84]); | 684 | id[84]); |
685 | DPRINTK("88==0x%04x " | 685 | DPRINTK("88==0x%04x " |
686 | "93==0x%04x\n", | 686 | "93==0x%04x\n", |
687 | dev->id[88], | 687 | id[88], |
688 | dev->id[93]); | 688 | id[93]); |
689 | } | 689 | } |
690 | 690 | ||
691 | /* | 691 | /* |
@@ -1019,7 +1019,7 @@ retry: | |||
1019 | if (!xfer_modes) | 1019 | if (!xfer_modes) |
1020 | xfer_modes = ata_pio_modes(dev); | 1020 | xfer_modes = ata_pio_modes(dev); |
1021 | 1021 | ||
1022 | ata_dump_id(dev); | 1022 | ata_dump_id(dev->id); |
1023 | 1023 | ||
1024 | /* ATA-specific feature tests */ | 1024 | /* ATA-specific feature tests */ |
1025 | if (dev->class == ATA_DEV_ATA) { | 1025 | if (dev->class == ATA_DEV_ATA) { |
@@ -2510,7 +2510,7 @@ static void ata_dev_reread_id(struct ata_port *ap, struct ata_device *dev) | |||
2510 | 2510 | ||
2511 | swap_buf_le16(dev->id, ATA_ID_WORDS); | 2511 | swap_buf_le16(dev->id, ATA_ID_WORDS); |
2512 | 2512 | ||
2513 | ata_dump_id(dev); | 2513 | ata_dump_id(dev->id); |
2514 | 2514 | ||
2515 | DPRINTK("EXIT\n"); | 2515 | DPRINTK("EXIT\n"); |
2516 | 2516 | ||