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/NCR53c406a.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/NCR53c406a.c')
-rw-r--r-- | drivers/scsi/NCR53c406a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/NCR53c406a.c b/drivers/scsi/NCR53c406a.c index e1f2246ee7cd..135376992a57 100644 --- a/drivers/scsi/NCR53c406a.c +++ b/drivers/scsi/NCR53c406a.c | |||
@@ -710,7 +710,7 @@ static int NCR53c406a_queue(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) | |||
710 | 710 | ||
711 | /* We are locked here already by the mid layer */ | 711 | /* We are locked here already by the mid layer */ |
712 | REG0; | 712 | REG0; |
713 | outb(SCpnt->device->id, DEST_ID); /* set destination */ | 713 | outb(scmd_id(SCpnt), DEST_ID); /* set destination */ |
714 | outb(FLUSH_FIFO, CMD_REG); /* reset the fifos */ | 714 | outb(FLUSH_FIFO, CMD_REG); /* reset the fifos */ |
715 | 715 | ||
716 | for (i = 0; i < SCpnt->cmd_len; i++) { | 716 | for (i = 0; i < SCpnt->cmd_len; i++) { |