diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2010-01-19 04:44:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-19 04:44:41 -0500 |
commit | e085b3cae85af47eb0a3eda3186bd898310fb322 (patch) | |
tree | 7f7fea27f1398558a63e58b2f52347ae93383bac /drivers/ide/it821x.c | |
parent | 3fccaa192b9501e79a57e02e62b6bf420d2b461e (diff) |
ide: change ->set_pio_mode method parameters
Change ->set_pio_mode method parameters to match ->set_piomode method
used in struct ata_port_operations.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/it821x.c')
-rw-r--r-- | drivers/ide/it821x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/it821x.c b/drivers/ide/it821x.c index 51aa745246dc..69becb7b9656 100644 --- a/drivers/ide/it821x.c +++ b/drivers/ide/it821x.c | |||
@@ -228,18 +228,18 @@ static void it821x_clock_strategy(ide_drive_t *drive) | |||
228 | 228 | ||
229 | /** | 229 | /** |
230 | * it821x_set_pio_mode - set host controller for PIO mode | 230 | * it821x_set_pio_mode - set host controller for PIO mode |
231 | * @hwif: port | ||
231 | * @drive: drive | 232 | * @drive: drive |
232 | * @pio: PIO mode number | ||
233 | * | 233 | * |
234 | * Tune the host to the desired PIO mode taking into the consideration | 234 | * Tune the host to the desired PIO mode taking into the consideration |
235 | * the maximum PIO mode supported by the other device on the cable. | 235 | * the maximum PIO mode supported by the other device on the cable. |
236 | */ | 236 | */ |
237 | 237 | ||
238 | static void it821x_set_pio_mode(ide_drive_t *drive, const u8 pio) | 238 | static void it821x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) |
239 | { | 239 | { |
240 | ide_hwif_t *hwif = drive->hwif; | ||
241 | struct it821x_dev *itdev = ide_get_hwifdata(hwif); | 240 | struct it821x_dev *itdev = ide_get_hwifdata(hwif); |
242 | ide_drive_t *pair = ide_get_pair_dev(drive); | 241 | ide_drive_t *pair = ide_get_pair_dev(drive); |
242 | const u8 pio = drive->pio_mode - XFER_PIO_0; | ||
243 | u8 unit = drive->dn & 1, set_pio = pio; | 243 | u8 unit = drive->dn & 1, set_pio = pio; |
244 | 244 | ||
245 | /* Spec says 89 ref driver uses 88 */ | 245 | /* Spec says 89 ref driver uses 88 */ |