aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:39 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:39 -0400
commitc9d6c1a2379373219bb3271bdcbdc0ab2edf349d (patch)
tree9807c4ff5c92df9fd914c39db6bdd0179ecb1b27 /include
parent8a97206e31dc2e2f8f9b4d97e234b5c701fe9894 (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')
-rw-r--r--include/linux/ide.h2
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
1302struct ide_timing *ide_timing_find_mode(u8); 1302struct ide_timing *ide_timing_find_mode(u8);
1303u16 ide_pio_cycle_time(ide_drive_t *, u8);
1303void ide_timing_merge(struct ide_timing *, struct ide_timing *, 1304void ide_timing_merge(struct ide_timing *, struct ide_timing *,
1304 struct ide_timing *, unsigned int); 1305 struct ide_timing *, unsigned int);
1305int ide_timing_compute(ide_drive_t *, u8, struct ide_timing *, int, int); 1306int 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
1314unsigned int ide_pio_cycle_time(ide_drive_t *, u8);
1315u8 ide_get_best_pio_mode(ide_drive_t *, u8, u8); 1315u8 ide_get_best_pio_mode(ide_drive_t *, u8, u8);
1316extern const ide_pio_timings_t ide_pio_timings[6]; 1316extern const ide_pio_timings_t ide_pio_timings[6];
1317 1317