diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-16 14:33:39 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-16 14:33:39 -0400 |
commit | c9d6c1a2379373219bb3271bdcbdc0ab2edf349d (patch) | |
tree | 9807c4ff5c92df9fd914c39db6bdd0179ecb1b27 /include/linux/ide.h | |
parent | 8a97206e31dc2e2f8f9b4d97e234b5c701fe9894 (diff) |
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>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 057001f6b1dc..3899c761b302 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1300,6 +1300,7 @@ enum { | |||
1300 | }; | 1300 | }; |
1301 | 1301 | ||
1302 | struct ide_timing *ide_timing_find_mode(u8); | 1302 | struct ide_timing *ide_timing_find_mode(u8); |
1303 | u16 ide_pio_cycle_time(ide_drive_t *, u8); | ||
1303 | void ide_timing_merge(struct ide_timing *, struct ide_timing *, | 1304 | void ide_timing_merge(struct ide_timing *, struct ide_timing *, |
1304 | struct ide_timing *, unsigned int); | 1305 | struct ide_timing *, unsigned int); |
1305 | int ide_timing_compute(ide_drive_t *, u8, struct ide_timing *, int, int); | 1306 | int ide_timing_compute(ide_drive_t *, u8, struct ide_timing *, int, int); |
@@ -1311,7 +1312,6 @@ typedef struct ide_pio_timings_s { | |||
1311 | /* active + recovery (+ setup for some chips) */ | 1312 | /* active + recovery (+ setup for some chips) */ |
1312 | } ide_pio_timings_t; | 1313 | } ide_pio_timings_t; |
1313 | 1314 | ||
1314 | unsigned int ide_pio_cycle_time(ide_drive_t *, u8); | ||
1315 | u8 ide_get_best_pio_mode(ide_drive_t *, u8, u8); | 1315 | u8 ide_get_best_pio_mode(ide_drive_t *, u8, u8); |
1316 | extern const ide_pio_timings_t ide_pio_timings[6]; | 1316 | extern const ide_pio_timings_t ide_pio_timings[6]; |
1317 | 1317 | ||