diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-11 17:53:59 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-11 17:53:59 -0400 |
commit | f212ff28f08e4ddcef9f25b13463c45cc4204a0c (patch) | |
tree | e8fe63044c2ebec404689cbd55d75497aa77da0a /drivers/ide/pci/jmicron.c | |
parent | 3160d5416f39da9d9221fec7cb9d64399b706bbc (diff) |
ide: move ide_rate_filter() calls to the upper layer (take 2)
* Move ide_rate_filter() calls from host drivers to IDE core.
* Make ide_rate_filter() static.
* Make 'speed' argument of ->speedproc const.
v2:
* Fix it8213_tune_chipset() comment.
There should be no functionality changes caused by this patch.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/jmicron.c')
-rw-r--r-- | drivers/ide/pci/jmicron.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/ide/pci/jmicron.c b/drivers/ide/pci/jmicron.c index 17490d255758..7bac87fb481a 100644 --- a/drivers/ide/pci/jmicron.c +++ b/drivers/ide/pci/jmicron.c | |||
@@ -92,17 +92,14 @@ static void jmicron_tuneproc(ide_drive_t *drive, u8 pio) | |||
92 | /** | 92 | /** |
93 | * jmicron_tune_chipset - set controller timings | 93 | * jmicron_tune_chipset - set controller timings |
94 | * @drive: Drive to set up | 94 | * @drive: Drive to set up |
95 | * @xferspeed: speed we want to achieve | 95 | * @speed: speed we want to achieve |
96 | * | 96 | * |
97 | * As the JMicron snoops for timings all we actually need to do is | 97 | * As the JMicron snoops for timings all we actually need to do is |
98 | * make sure we don't set an invalid mode. We do need to honour | 98 | * set the transfer mode on the device. |
99 | * the cable detect here. | ||
100 | */ | 99 | */ |
101 | 100 | ||
102 | static int jmicron_tune_chipset (ide_drive_t *drive, byte xferspeed) | 101 | static int jmicron_tune_chipset(ide_drive_t *drive, const u8 speed) |
103 | { | 102 | { |
104 | u8 speed = ide_rate_filter(drive, xferspeed); | ||
105 | |||
106 | return ide_config_drive_speed(drive, speed); | 103 | return ide_config_drive_speed(drive, speed); |
107 | } | 104 | } |
108 | 105 | ||