aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/it821x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/it821x.c')
-rw-r--r--drivers/ide/pci/it821x.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/ide/pci/it821x.c b/drivers/ide/pci/it821x.c
index 9286c99e2ff0..a756e61bcb32 100644
--- a/drivers/ide/pci/it821x.c
+++ b/drivers/ide/pci/it821x.c
@@ -405,23 +405,19 @@ static int it821x_dma_end(ide_drive_t *drive)
405 return ret; 405 return ret;
406} 406}
407 407
408
409/** 408/**
410 * it821x_tune_chipset - set controller timings 409 * it821x_tune_chipset - set controller timings
411 * @drive: Drive to set up 410 * @drive: Drive to set up
412 * @xferspeed: speed we want to achieve 411 * @speed: speed we want to achieve
413 * 412 *
414 * Tune the ITE chipset for the desired mode. If we can't achieve 413 * Tune the ITE chipset for the desired mode.
415 * the desired mode then tune for a lower one, but ultimately
416 * make the thing work.
417 */ 414 */
418 415
419static int it821x_tune_chipset (ide_drive_t *drive, byte xferspeed) 416static int it821x_tune_chipset(ide_drive_t *drive, const u8 speed)
420{ 417{
421 418
422 ide_hwif_t *hwif = drive->hwif; 419 ide_hwif_t *hwif = drive->hwif;
423 struct it821x_dev *itdev = ide_get_hwifdata(hwif); 420 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
424 u8 speed = ide_rate_filter(drive, xferspeed);
425 421
426 switch (speed) { 422 switch (speed) {
427 case XFER_PIO_4: 423 case XFER_PIO_4: