]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide: move ide_pio_cycle_time() to ide-timings.c
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 16 Jul 2008 18:33:39 +0000 (20:33 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 16 Jul 2008 18:33:39 +0000 (20:33 +0200)
commitc9d6c1a2379373219bb3271bdcbdc0ab2edf349d
tree9807c4ff5c92df9fd914c39db6bdd0179ecb1b27
parent8a97206e31dc2e2f8f9b4d97e234b5c701fe9894
ide: move ide_pio_cycle_time() to ide-timings.c

All ide_pio_cycle_time() users already select CONFIG_IDE_TIMINGS
so move the function from ide-lib.c to ide-timings.c.

While at it:

- convert ide_pio_cycle_time() to use ide_timing_find_mode()

- cleanup ide_pio_cycle_time() a bit

There should be no functional changes caused by this patch.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-lib.c
drivers/ide/ide-timings.c
include/linux/ide.h