diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:38 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:38 -0400 |
commit | adb1af9803d167091c2cb4de14014185054bfe2c (patch) | |
tree | aeac3bd825abfb344b1b1b43e282756fb8069f49 /drivers/ide/at91_ide.c | |
parent | 22aa4b32a19b1f231d4ce7e9af6354b577a22a35 (diff) |
ide: pass command instead of request to ide_pio_datablock()
* Add IDE_TFLAG_FS taskfile flag and set it for REQ_TYPE_FS requests.
* Convert ->{in,out}put_data methods to take command instead of request
as an argument. Then convert pre_task_out_intr(), task_end_request(),
task_error(), task_in_unexpected(), ide_pio_sector(), ide_pio_multi()
and ide_pio_datablock() in similar way.
* Rename task_end_request() to ide_finish_cmd().
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/at91_ide.c')
-rw-r--r-- | drivers/ide/at91_ide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/at91_ide.c b/drivers/ide/at91_ide.c index 6be7d87382ab..27547121daff 100644 --- a/drivers/ide/at91_ide.c +++ b/drivers/ide/at91_ide.c | |||
@@ -143,7 +143,7 @@ static void apply_timings(const u8 chipselect, const u8 pio, | |||
143 | set_smc_timings(chipselect, cycle, setup, pulse, data_float, use_iordy); | 143 | set_smc_timings(chipselect, cycle, setup, pulse, data_float, use_iordy); |
144 | } | 144 | } |
145 | 145 | ||
146 | static void at91_ide_input_data(ide_drive_t *drive, struct request *rq, | 146 | static void at91_ide_input_data(ide_drive_t *drive, struct ide_cmd *cmd, |
147 | void *buf, unsigned int len) | 147 | void *buf, unsigned int len) |
148 | { | 148 | { |
149 | ide_hwif_t *hwif = drive->hwif; | 149 | ide_hwif_t *hwif = drive->hwif; |
@@ -160,7 +160,7 @@ static void at91_ide_input_data(ide_drive_t *drive, struct request *rq, | |||
160 | leave_16bit(chipselect, mode); | 160 | leave_16bit(chipselect, mode); |
161 | } | 161 | } |
162 | 162 | ||
163 | static void at91_ide_output_data(ide_drive_t *drive, struct request *rq, | 163 | static void at91_ide_output_data(ide_drive_t *drive, struct ide_cmd *cmd, |
164 | void *buf, unsigned int len) | 164 | void *buf, unsigned int len) |
165 | { | 165 | { |
166 | ide_hwif_t *hwif = drive->hwif; | 166 | ide_hwif_t *hwif = drive->hwif; |