[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>
This commit is contained in:
Tejun Heo 2006-02-12 22:47:05 +09:00 committed by Jeff Garzik
parent 3d2ca91095
commit 0bd3300ac9
1 changed files with 18 additions and 18 deletions

View File

@ -651,41 +651,41 @@ void ata_dev_select(struct ata_port *ap, unsigned int device,
/** /**
* ata_dump_id - IDENTIFY DEVICE info debugging output * ata_dump_id - IDENTIFY DEVICE info debugging output
* @dev: Device whose IDENTIFY DEVICE page we will dump * @id: IDENTIFY DEVICE page to dump
* *
* Dump selected 16-bit words from a detected device's * Dump selected 16-bit words from the given IDENTIFY DEVICE
* IDENTIFY PAGE page. * page.
* *
* LOCKING: * LOCKING:
* caller. * caller.
*/ */
static inline void ata_dump_id(const struct ata_device *dev) static inline void ata_dump_id(const u16 *id)
{ {
DPRINTK("49==0x%04x " DPRINTK("49==0x%04x "
"53==0x%04x " "53==0x%04x "
"63==0x%04x " "63==0x%04x "
"64==0x%04x " "64==0x%04x "
"75==0x%04x \n", "75==0x%04x \n",
dev->id[49], id[49],
dev->id[53], id[53],
dev->id[63], id[63],
dev->id[64], id[64],
dev->id[75]); id[75]);
DPRINTK("80==0x%04x " DPRINTK("80==0x%04x "
"81==0x%04x " "81==0x%04x "
"82==0x%04x " "82==0x%04x "
"83==0x%04x " "83==0x%04x "
"84==0x%04x \n", "84==0x%04x \n",
dev->id[80], id[80],
dev->id[81], id[81],
dev->id[82], id[82],
dev->id[83], id[83],
dev->id[84]); id[84]);
DPRINTK("88==0x%04x " DPRINTK("88==0x%04x "
"93==0x%04x\n", "93==0x%04x\n",
dev->id[88], id[88],
dev->id[93]); id[93]);
} }
/* /*
@ -1019,7 +1019,7 @@ retry:
if (!xfer_modes) if (!xfer_modes)
xfer_modes = ata_pio_modes(dev); xfer_modes = ata_pio_modes(dev);
ata_dump_id(dev); ata_dump_id(dev->id);
/* ATA-specific feature tests */ /* ATA-specific feature tests */
if (dev->class == ATA_DEV_ATA) { if (dev->class == ATA_DEV_ATA) {
@ -2510,7 +2510,7 @@ static void ata_dev_reread_id(struct ata_port *ap, struct ata_device *dev)
swap_buf_le16(dev->id, ATA_ID_WORDS); swap_buf_le16(dev->id, ATA_ID_WORDS);
ata_dump_id(dev); ata_dump_id(dev->id);
DPRINTK("EXIT\n"); DPRINTK("EXIT\n");