aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-tape.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:36 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:36 -0400
commitacaa0f5f675ccf6b8a3a11a933419068b1ea1f46 (patch)
tree8afee71c69bf765a5edd0de82c98c6470905ec20 /drivers/ide/ide-tape.c
parentc860f955681ebd83df4a03089f1910fc4b54651f (diff)
ide: add ide_io_buffers() helper
* Make ->io_buffers method return number of bytes transferred. * Use ide_end_request() instead of idefloppy_end_request() in ide_floppy_io_buffers() and then move the call out to ide_pc_intr(). * Add ide_io_buffers() helper and convert ide-{floppy,scsi}.c to use it instead of ide*_io_buffers(). There should be no functional changes caused by this patch. Acked-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r--drivers/ide/ide-tape.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index ba05e03f482b..d4a9c471dd13 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -693,13 +693,15 @@ static void ide_tape_handle_dsc(ide_drive_t *drive)
693 idetape_postpone_request(drive); 693 idetape_postpone_request(drive);
694} 694}
695 695
696static void ide_tape_io_buffers(ide_drive_t *drive, struct ide_atapi_pc *pc, 696static int ide_tape_io_buffers(ide_drive_t *drive, struct ide_atapi_pc *pc,
697 unsigned int bcount, int write) 697 unsigned int bcount, int write)
698{ 698{
699 if (write) 699 if (write)
700 idetape_output_buffers(drive, pc, bcount); 700 idetape_output_buffers(drive, pc, bcount);
701 else 701 else
702 idetape_input_buffers(drive, pc, bcount); 702 idetape_input_buffers(drive, pc, bcount);
703
704 return bcount;
703} 705}
704 706
705/* 707/*