diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:30 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:30 -0400 |
commit | b14c72127fbe8f97e49de7437520175673f7306a (patch) | |
tree | 7cf54dd800cbb004cd44a947f2a4530fe132a26b /drivers/scsi/ide-scsi.c | |
parent | 9b5a18e19f8c610c270ee9a0ba03177d737f6aa5 (diff) |
ide: drop dsc_handle argument from ide_pc_intr()
* Add 'int dsc' argument to ->pc_callback method.
* Call ide_tape_handle_dsc() internally in ide_tape_callback()
if dsc argument is set and update ide_pc_intr() accordingly.
There should be no functional changes caused by this patch.
Cc: Borislav Petkov <petkovbb@gmail.com>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/scsi/ide-scsi.c')
-rw-r--r-- | drivers/scsi/ide-scsi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index 90212ac33be3..b9bfec24e913 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c | |||
@@ -137,7 +137,7 @@ static void ide_scsi_hex_dump(u8 *data, int len) | |||
137 | 137 | ||
138 | static int idescsi_end_request(ide_drive_t *, int, int); | 138 | static int idescsi_end_request(ide_drive_t *, int, int); |
139 | 139 | ||
140 | static void ide_scsi_callback(ide_drive_t *drive) | 140 | static void ide_scsi_callback(ide_drive_t *drive, int dsc) |
141 | { | 141 | { |
142 | idescsi_scsi_t *scsi = drive_to_idescsi(drive); | 142 | idescsi_scsi_t *scsi = drive_to_idescsi(drive); |
143 | struct ide_atapi_pc *pc = scsi->pc; | 143 | struct ide_atapi_pc *pc = scsi->pc; |
@@ -298,8 +298,7 @@ static ide_startstop_t idescsi_pc_intr (ide_drive_t *drive) | |||
298 | struct ide_atapi_pc *pc = scsi->pc; | 298 | struct ide_atapi_pc *pc = scsi->pc; |
299 | 299 | ||
300 | return ide_pc_intr(drive, pc, idescsi_pc_intr, get_timeout(pc), | 300 | return ide_pc_intr(drive, pc, idescsi_pc_intr, get_timeout(pc), |
301 | idescsi_expiry, NULL, NULL, NULL, | 301 | idescsi_expiry, NULL, NULL, ide_io_buffers); |
302 | ide_io_buffers); | ||
303 | } | 302 | } |
304 | 303 | ||
305 | static ide_startstop_t idescsi_transfer_pc(ide_drive_t *drive) | 304 | static ide_startstop_t idescsi_transfer_pc(ide_drive_t *drive) |