diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:58 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:58 -0400 |
commit | 2134758d2a5429325cee4d4ce8959af5314eeba1 (patch) | |
tree | cc0d1326c04522e70c1f52598c9aba29aa85170f /drivers/ide/pci/cs5535.c | |
parent | e5fa4b2968ff0f32b5ecfa082fd6db50b731055e (diff) |
ide: drop "PIO data" argument from ide_get_best_pio_mode()
* Drop no longer needed "PIO data" argument from ide_get_best_pio_mode()
and convert all users accordingly.
* Remove no longer needed ide_pio_data_t.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/cs5535.c')
-rw-r--r-- | drivers/ide/pci/cs5535.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/pci/cs5535.c b/drivers/ide/pci/cs5535.c index 503979372144..0bff4005292a 100644 --- a/drivers/ide/pci/cs5535.c +++ b/drivers/ide/pci/cs5535.c | |||
@@ -89,7 +89,7 @@ static void cs5535_set_speed(ide_drive_t *drive, u8 speed) | |||
89 | 89 | ||
90 | pioa = speed - XFER_PIO_0; | 90 | pioa = speed - XFER_PIO_0; |
91 | piob = ide_get_best_pio_mode(&(drive->hwif->drives[!unit]), | 91 | piob = ide_get_best_pio_mode(&(drive->hwif->drives[!unit]), |
92 | 255, 4, NULL); | 92 | 255, 4); |
93 | cmd = pioa < piob ? pioa : piob; | 93 | cmd = pioa < piob ? pioa : piob; |
94 | 94 | ||
95 | /* Write the speed of the current drive */ | 95 | /* Write the speed of the current drive */ |
@@ -159,7 +159,7 @@ static void cs5535_tuneproc(ide_drive_t *drive, u8 xferspeed) | |||
159 | /* cs5535 max pio is pio 4, best_pio will check the blacklist. | 159 | /* cs5535 max pio is pio 4, best_pio will check the blacklist. |
160 | i think we don't need to rate_filter the incoming xferspeed | 160 | i think we don't need to rate_filter the incoming xferspeed |
161 | since we know we're only going to choose pio */ | 161 | since we know we're only going to choose pio */ |
162 | xferspeed = ide_get_best_pio_mode(drive, xferspeed, 4, NULL); | 162 | xferspeed = ide_get_best_pio_mode(drive, xferspeed, 4); |
163 | ide_config_drive_speed(drive, modes[xferspeed]); | 163 | ide_config_drive_speed(drive, modes[xferspeed]); |
164 | cs5535_set_speed(drive, xferspeed); | 164 | cs5535_set_speed(drive, xferspeed); |
165 | } | 165 | } |
@@ -174,7 +174,7 @@ static int cs5535_dma_check(ide_drive_t *drive) | |||
174 | return 0; | 174 | return 0; |
175 | 175 | ||
176 | if (ide_use_fast_pio(drive)) { | 176 | if (ide_use_fast_pio(drive)) { |
177 | speed = ide_get_best_pio_mode(drive, 255, 4, NULL); | 177 | speed = ide_get_best_pio_mode(drive, 255, 4); |
178 | cs5535_set_drive(drive, speed); | 178 | cs5535_set_drive(drive, speed); |
179 | } | 179 | } |
180 | 180 | ||