diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-24 18:05:09 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-10-28 22:10:16 -0400 |
commit | 422c0d61d591cbfb70f029e13505fb437e169d68 (patch) | |
tree | ebafa14e1c1564ddf263868c3b6907642a8fdf1e /drivers/scsi/fdomain.c | |
parent | 017560fca496f72ed9dd734ffde63ce39dfe0411 (diff) |
[SCSI] use scmd_id(), scmd_channel() throughout code
Wrap a highly common idiom. Makes the code easier to read, helps pave
the way for sdev->{id,channel} removal, and adds a token that can easily
by grepped-for in the future.
There are a couple sdev_id() and scmd_printk() updates thrown in as well.
Rejections fixed up and
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/fdomain.c')
-rw-r--r-- | drivers/scsi/fdomain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c index 3b2a5bf5c43e..7334244397d1 100644 --- a/drivers/scsi/fdomain.c +++ b/drivers/scsi/fdomain.c | |||
@@ -1154,7 +1154,7 @@ static irqreturn_t do_fdomain_16x0_intr(int irq, void *dev_id, | |||
1154 | outb(0x40 | FIFO_COUNT, port_base + Interrupt_Cntl); | 1154 | outb(0x40 | FIFO_COUNT, port_base + Interrupt_Cntl); |
1155 | 1155 | ||
1156 | outb(0x82, port_base + SCSI_Cntl); /* Bus Enable + Select */ | 1156 | outb(0x82, port_base + SCSI_Cntl); /* Bus Enable + Select */ |
1157 | outb(adapter_mask | (1 << current_SC->device->id), port_base + SCSI_Data_NoACK); | 1157 | outb(adapter_mask | (1 << scmd_id(current_SC)), port_base + SCSI_Data_NoACK); |
1158 | 1158 | ||
1159 | /* Stop arbitration and enable parity */ | 1159 | /* Stop arbitration and enable parity */ |
1160 | outb(0x10 | PARITY_MASK, port_base + TMC_Cntl); | 1160 | outb(0x10 | PARITY_MASK, port_base + TMC_Cntl); |
@@ -1166,7 +1166,7 @@ static irqreturn_t do_fdomain_16x0_intr(int irq, void *dev_id, | |||
1166 | status = inb(port_base + SCSI_Status); | 1166 | status = inb(port_base + SCSI_Status); |
1167 | if (!(status & 0x01)) { | 1167 | if (!(status & 0x01)) { |
1168 | /* Try again, for slow devices */ | 1168 | /* Try again, for slow devices */ |
1169 | if (fdomain_select( current_SC->device->id )) { | 1169 | if (fdomain_select( scmd_id(current_SC) )) { |
1170 | #if EVERY_ACCESS | 1170 | #if EVERY_ACCESS |
1171 | printk( " SFAIL " ); | 1171 | printk( " SFAIL " ); |
1172 | #endif | 1172 | #endif |