]> git.baikalelectronics.ru Git - kernel.git/commit
ide: add pointer to the current packet command to ide_drive_t
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 13 Oct 2008 19:39:31 +0000 (21:39 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 13 Oct 2008 19:39:31 +0000 (21:39 +0200)
commitb7b0a2458f4a0dbd315d12feb28078ad4dcf0e7a
tree215d86f1934c896f8ec609ab033b69bf5b99e217
parent25f1c6307b6545ae959c608a8a4487655fe408e1
ide: add pointer to the current packet command to ide_drive_t

* Add pointer to the current packet command (struct ide_atapi_pc *pc)
  to ide_drive_t and use it instead of the pointer in struct ide_*_obj.

* Use drive->pc in ide_{issue,transfer}_pc() and ide_pc_intr()
  instead of 'pc' argument.

There should be no functional changes caused by this patch.

Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-atapi.c
drivers/ide/ide-floppy.c
drivers/ide/ide-floppy.h
drivers/ide/ide-tape.c
drivers/scsi/ide-scsi.c
include/linux/ide.h