aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2008-07-15 15:21:51 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-15 15:21:51 -0400
commit63f5abb0959337db0d5bece9cefba03cdcadec51 (patch)
tree908862cbb739d6571fab4b24f264d4d3671e6400 /include/linux/ide.h
parent7e12ca11d65f4cb29ed58ea3948f8c5d4f57b35e (diff)
ide: remove action argument in ide_do_drive_cmd
ide_do_drive_cmd is called only with ide_preempt action argument. So we can remove the action argument in ide_do_drive_cmd and ide_action_t typedef. This patch also includes two minor cleanups: 1) ide_do_drive_cmd always succeeds so we don't need the return value; 2) the callers use blk_rq_init before ide_do_drive_cmd so there is no need to initialize rq->errors. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index d8c86f0362c4..04267dc1edf2 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -851,17 +851,7 @@ int ide_wait_stat(ide_startstop_t *, ide_drive_t *, u8, u8, unsigned long);
851 851
852extern ide_startstop_t ide_do_reset (ide_drive_t *); 852extern ide_startstop_t ide_do_reset (ide_drive_t *);
853 853
854/* 854extern void ide_do_drive_cmd(ide_drive_t *, struct request *);
855 * "action" parameter type for ide_do_drive_cmd() below.
856 */
857typedef enum {
858 ide_wait, /* insert rq at end of list, and wait for it */
859 ide_preempt, /* insert rq in front of current request */
860 ide_head_wait, /* insert rq in front of current request and wait for it */
861 ide_end /* insert rq at end of list, but don't wait for it */
862} ide_action_t;
863
864extern int ide_do_drive_cmd(ide_drive_t *, struct request *, ide_action_t);
865 855
866extern void ide_end_drive_cmd(ide_drive_t *, u8, u8); 856extern void ide_end_drive_cmd(ide_drive_t *, u8, u8);
867 857