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>
This commit is contained in:
@@ -234,14 +234,12 @@ static void amd_set_speed(struct pci_dev *dev, unsigned char dn, struct ide_timi
|
||||
* by upper layers.
|
||||
*/
|
||||
|
||||
static int amd_set_drive(ide_drive_t *drive, u8 speed)
|
||||
static int amd_set_drive(ide_drive_t *drive, const u8 speed)
|
||||
{
|
||||
ide_drive_t *peer = HWIF(drive)->drives + (~drive->dn & 1);
|
||||
struct ide_timing t, p;
|
||||
int T, UT;
|
||||
|
||||
speed = ide_rate_filter(drive, speed);
|
||||
|
||||
if (speed != XFER_PIO_SLOW)
|
||||
ide_config_drive_speed(drive, speed);
|
||||
|
||||
|
Reference in New Issue
Block a user