diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:37 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:37 -0400 |
commit | 22aa4b32a19b1f231d4ce7e9af6354b577a22a35 (patch) | |
tree | 3e773e7102e4ea6bb6b4c00edce442c4e8f37edb /include/linux/ide.h | |
parent | e6830a86c260d73c6f370aa7ed17ee6c71e5ee05 (diff) |
ide: remove ide_task_t typedef
While at it:
- rename struct ide_task_s to struct ide_cmd
- remove stale comments from idedisk_{read_native,set}_max_address()
- drop unused 'cmd' argument from ide_{cmd,task}_ioctl()
- drop unused 'task' argument from tx4939ide_tf_load_fixup()
- rename ide_complete_task() to ide_complete_cmd()
- use consistent naming for struct ide_cmd variables
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 2ee236d1f3ac..f0e3618c7257 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -295,7 +295,7 @@ enum { | |||
295 | IDE_TFLAG_IN_DEVICE, | 295 | IDE_TFLAG_IN_DEVICE, |
296 | /* force 16-bit I/O operations */ | 296 | /* force 16-bit I/O operations */ |
297 | IDE_TFLAG_IO_16BIT = (1 << 26), | 297 | IDE_TFLAG_IO_16BIT = (1 << 26), |
298 | /* ide_task_t was allocated using kmalloc() */ | 298 | /* struct ide_cmd was allocated using kmalloc() */ |
299 | IDE_TFLAG_DYN = (1 << 27), | 299 | IDE_TFLAG_DYN = (1 << 27), |
300 | }; | 300 | }; |
301 | 301 | ||
@@ -335,7 +335,7 @@ struct ide_taskfile { | |||
335 | }; | 335 | }; |
336 | }; | 336 | }; |
337 | 337 | ||
338 | typedef struct ide_task_s { | 338 | struct ide_cmd { |
339 | union { | 339 | union { |
340 | struct ide_taskfile tf; | 340 | struct ide_taskfile tf; |
341 | u8 tf_array[14]; | 341 | u8 tf_array[14]; |
@@ -345,7 +345,7 @@ typedef struct ide_task_s { | |||
345 | int data_phase; | 345 | int data_phase; |
346 | struct request *rq; /* copy of request */ | 346 | struct request *rq; /* copy of request */ |
347 | void *special; /* valid_t generally */ | 347 | void *special; /* valid_t generally */ |
348 | } ide_task_t; | 348 | }; |
349 | 349 | ||
350 | /* ATAPI packet command flags */ | 350 | /* ATAPI packet command flags */ |
351 | enum { | 351 | enum { |
@@ -652,8 +652,8 @@ struct ide_tp_ops { | |||
652 | 652 | ||
653 | void (*set_irq)(struct hwif_s *, int); | 653 | void (*set_irq)(struct hwif_s *, int); |
654 | 654 | ||
655 | void (*tf_load)(ide_drive_t *, struct ide_task_s *); | 655 | void (*tf_load)(ide_drive_t *, struct ide_cmd *); |
656 | void (*tf_read)(ide_drive_t *, struct ide_task_s *); | 656 | void (*tf_read)(ide_drive_t *, struct ide_cmd *); |
657 | 657 | ||
658 | void (*input_data)(ide_drive_t *, struct request *, void *, | 658 | void (*input_data)(ide_drive_t *, struct request *, void *, |
659 | unsigned int); | 659 | unsigned int); |
@@ -775,7 +775,7 @@ typedef struct hwif_s { | |||
775 | int orig_sg_nents; | 775 | int orig_sg_nents; |
776 | int sg_dma_direction; /* dma transfer direction */ | 776 | int sg_dma_direction; /* dma transfer direction */ |
777 | 777 | ||
778 | struct ide_task_s task; /* current command */ | 778 | struct ide_cmd cmd; /* current command */ |
779 | 779 | ||
780 | unsigned int nsect; | 780 | unsigned int nsect; |
781 | unsigned int nleft; | 781 | unsigned int nleft; |
@@ -1161,7 +1161,7 @@ extern ide_startstop_t ide_do_reset (ide_drive_t *); | |||
1161 | extern int ide_devset_execute(ide_drive_t *drive, | 1161 | extern int ide_devset_execute(ide_drive_t *drive, |
1162 | const struct ide_devset *setting, int arg); | 1162 | const struct ide_devset *setting, int arg); |
1163 | 1163 | ||
1164 | void ide_complete_task(ide_drive_t *, ide_task_t *, u8, u8); | 1164 | void ide_complete_cmd(ide_drive_t *, struct ide_cmd *, u8, u8); |
1165 | void ide_complete_rq(ide_drive_t *, u8); | 1165 | void ide_complete_rq(ide_drive_t *, u8); |
1166 | 1166 | ||
1167 | void ide_tf_dump(const char *, struct ide_taskfile *); | 1167 | void ide_tf_dump(const char *, struct ide_taskfile *); |
@@ -1172,8 +1172,8 @@ u8 ide_read_altstatus(ide_hwif_t *); | |||
1172 | 1172 | ||
1173 | void ide_set_irq(ide_hwif_t *, int); | 1173 | void ide_set_irq(ide_hwif_t *, int); |
1174 | 1174 | ||
1175 | void ide_tf_load(ide_drive_t *, ide_task_t *); | 1175 | void ide_tf_load(ide_drive_t *, struct ide_cmd *); |
1176 | void ide_tf_read(ide_drive_t *, ide_task_t *); | 1176 | void ide_tf_read(ide_drive_t *, struct ide_cmd *); |
1177 | 1177 | ||
1178 | void ide_input_data(ide_drive_t *, struct request *, void *, unsigned int); | 1178 | void ide_input_data(ide_drive_t *, struct request *, void *, unsigned int); |
1179 | void ide_output_data(ide_drive_t *, struct request *, void *, unsigned int); | 1179 | void ide_output_data(ide_drive_t *, struct request *, void *, unsigned int); |
@@ -1224,14 +1224,14 @@ int ide_cd_get_xferlen(struct request *); | |||
1224 | 1224 | ||
1225 | ide_startstop_t ide_issue_pc(ide_drive_t *); | 1225 | ide_startstop_t ide_issue_pc(ide_drive_t *); |
1226 | 1226 | ||
1227 | ide_startstop_t do_rw_taskfile(ide_drive_t *, ide_task_t *); | 1227 | ide_startstop_t do_rw_taskfile(ide_drive_t *, struct ide_cmd *); |
1228 | 1228 | ||
1229 | void task_end_request(ide_drive_t *, struct request *, u8); | 1229 | void task_end_request(ide_drive_t *, struct request *, u8); |
1230 | 1230 | ||
1231 | int ide_raw_taskfile(ide_drive_t *, ide_task_t *, u8 *, u16); | 1231 | int ide_raw_taskfile(ide_drive_t *, struct ide_cmd *, u8 *, u16); |
1232 | int ide_no_data_taskfile(ide_drive_t *, ide_task_t *); | 1232 | int ide_no_data_taskfile(ide_drive_t *, struct ide_cmd *); |
1233 | 1233 | ||
1234 | int ide_taskfile_ioctl(ide_drive_t *, unsigned int, unsigned long); | 1234 | int ide_taskfile_ioctl(ide_drive_t *, unsigned long); |
1235 | 1235 | ||
1236 | int ide_dev_read_id(ide_drive_t *, u8, u16 *); | 1236 | int ide_dev_read_id(ide_drive_t *, u8, u16 *); |
1237 | 1237 | ||