Skip to content

Commit

Permalink
[PATCH] ahci: make ahci_fill_cmd_slot() take *pp instead of *ap
Browse files Browse the repository at this point in the history
Make ahci_fill_cmd_slot() take struct ahci_port_priv *pp instead of
struct ata_port *ap as suggested by Jeff Garzik.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Feb 11, 2006
1 parent 7601442 commit a42fc65
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/scsi/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,8 @@ static unsigned int ahci_dev_classify(struct ata_port *ap)
return ata_dev_classify(&tf);
}

static void ahci_fill_cmd_slot(struct ata_port *ap, u32 opts)
static void ahci_fill_cmd_slot(struct ahci_port_priv *pp, u32 opts)
{
struct ahci_port_priv *pp = ap->private_data;
pp->cmd_slot[0].opts = cpu_to_le32(opts);
pp->cmd_slot[0].status = 0;
pp->cmd_slot[0].tbl_addr = cpu_to_le32(pp->cmd_tbl_dma & 0xffffffff);
Expand Down Expand Up @@ -622,7 +621,7 @@ static void ahci_qc_prep(struct ata_queued_cmd *qc)
if (is_atapi)
opts |= AHCI_CMD_ATAPI;

ahci_fill_cmd_slot(ap, opts);
ahci_fill_cmd_slot(pp, opts);
}

static void ahci_restart_port(struct ata_port *ap, u32 irq_stat)
Expand Down

0 comments on commit a42fc65

Please sign in to comment.