mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ide: add ->pc_{update,io}_buffers methods
Add ->pc_{update,io}_buffers methods to ide_drive_t and use
them instead of {update,io}_buffers ide_pc_intr() arguments.
There should be no functional changes caused by this patch.
Cc: Borislav Petkov <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
6b0da28b2d
commit
85e39035ca
5 changed files with 23 additions and 20 deletions
|
|
@ -275,7 +275,7 @@ static int idescsi_end_request (ide_drive_t *drive, int uptodate, int nrsecs)
|
|||
*/
|
||||
static ide_startstop_t idescsi_pc_intr (ide_drive_t *drive)
|
||||
{
|
||||
return ide_pc_intr(drive, idescsi_pc_intr, NULL, ide_io_buffers);
|
||||
return ide_pc_intr(drive, idescsi_pc_intr);
|
||||
}
|
||||
|
||||
static ide_startstop_t idescsi_transfer_pc(ide_drive_t *drive)
|
||||
|
|
@ -407,7 +407,9 @@ static void idescsi_setup (ide_drive_t *drive, idescsi_scsi_t *scsi)
|
|||
set_bit(IDESCSI_LOG_CMD, &scsi->log);
|
||||
#endif /* IDESCSI_DEBUG_LOG */
|
||||
|
||||
drive->pc_callback = ide_scsi_callback;
|
||||
drive->pc_callback = ide_scsi_callback;
|
||||
drive->pc_update_buffers = NULL;
|
||||
drive->pc_io_buffers = ide_io_buffers;
|
||||
|
||||
ide_proc_register_driver(drive, scsi->driver);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue