aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-tape.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:32 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:32 -0400
commitaa5d2de7b080873f6d9ac3aede423c9713bf0caa (patch)
treebabf0dbf6a7d7e545053736e5ae6976faddabfd7 /drivers/ide/ide-tape.c
parent85e39035ca381846b031690f4d1ac1f0660da0a2 (diff)
ide: make ide_pc_intr() static
* Always use ide_pc_intr as a handler in ide_pc_intr(). * Remove no longer used ide*_pc_intr() and 'handler' argument from ide_{transfer_pc,pc_intr}(). * Make ide_pc_intr() static. There should be no functional changes caused by this patch. Cc: 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.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index 5c26e98e2e39..a148de623af0 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -619,18 +619,6 @@ static int ide_tape_io_buffers(ide_drive_t *drive, struct ide_atapi_pc *pc,
619} 619}
620 620
621/* 621/*
622 * This is the usual interrupt handler which will be called during a packet
623 * command. We will transfer some of the data (as requested by the drive) and
624 * will re-point interrupt handler to us. When data transfer is finished, we
625 * will act according to the algorithm described before
626 * idetape_issue_pc.
627 */
628static ide_startstop_t idetape_pc_intr(ide_drive_t *drive)
629{
630 return ide_pc_intr(drive, idetape_pc_intr);
631}
632
633/*
634 * Packet Command Interface 622 * Packet Command Interface
635 * 623 *
636 * The current Packet Command is available in drive->pc, and will not change 624 * The current Packet Command is available in drive->pc, and will not change
@@ -640,9 +628,9 @@ static ide_startstop_t idetape_pc_intr(ide_drive_t *drive)
640 * The handling will be done in three stages: 628 * The handling will be done in three stages:
641 * 629 *
642 * 1. idetape_issue_pc will send the packet command to the drive, and will set 630 * 1. idetape_issue_pc will send the packet command to the drive, and will set
643 * the interrupt handler to idetape_pc_intr. 631 * the interrupt handler to ide_pc_intr.
644 * 632 *
645 * 2. On each interrupt, idetape_pc_intr will be called. This step will be 633 * 2. On each interrupt, ide_pc_intr will be called. This step will be
646 * repeated until the device signals us that no more interrupts will be issued. 634 * repeated until the device signals us that no more interrupts will be issued.
647 * 635 *
648 * 3. ATAPI Tape media access commands have immediate status with a delayed 636 * 3. ATAPI Tape media access commands have immediate status with a delayed
@@ -668,7 +656,7 @@ static ide_startstop_t idetape_pc_intr(ide_drive_t *drive)
668 */ 656 */
669static ide_startstop_t idetape_transfer_pc(ide_drive_t *drive) 657static ide_startstop_t idetape_transfer_pc(ide_drive_t *drive)
670{ 658{
671 return ide_transfer_pc(drive, idetape_pc_intr, WAIT_TAPE_CMD, NULL); 659 return ide_transfer_pc(drive, WAIT_TAPE_CMD, NULL);
672} 660}
673 661
674static ide_startstop_t idetape_issue_pc(ide_drive_t *drive, 662static ide_startstop_t idetape_issue_pc(ide_drive_t *drive,