diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-01-06 11:20:53 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-01-06 11:20:53 -0500 |
commit | 7f3c868ba78e486bd9d7569f884dd46d8f59bb18 (patch) | |
tree | c52ff0d21b22ae60194a462d565a6caf2518b569 /include/linux/ide.h | |
parent | 9892ec5497af1ec38c46974b5a370ba11c636b19 (diff) |
ide: remove ide_driver_t typedef
While at it:
- s/struct ide_driver_s/struct ide_driver/
- use to_ide_driver() macro in ide-proc.c
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 545a67f1f6b5..fcbcfa2cbe75 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -437,7 +437,7 @@ struct ide_atapi_pc { | |||
437 | }; | 437 | }; |
438 | 438 | ||
439 | struct ide_devset; | 439 | struct ide_devset; |
440 | struct ide_driver_s; | 440 | struct ide_driver; |
441 | 441 | ||
442 | #ifdef CONFIG_BLK_DEV_IDEACPI | 442 | #ifdef CONFIG_BLK_DEV_IDEACPI |
443 | struct ide_acpi_drive_link; | 443 | struct ide_acpi_drive_link; |
@@ -884,8 +884,6 @@ typedef int (ide_expiry_t)(ide_drive_t *); | |||
884 | /* used by ide-cd, ide-floppy, etc. */ | 884 | /* used by ide-cd, ide-floppy, etc. */ |
885 | typedef void (xfer_func_t)(ide_drive_t *, struct request *rq, void *, unsigned); | 885 | typedef void (xfer_func_t)(ide_drive_t *, struct request *rq, void *, unsigned); |
886 | 886 | ||
887 | typedef struct ide_driver_s ide_driver_t; | ||
888 | |||
889 | extern struct mutex ide_setting_mtx; | 887 | extern struct mutex ide_setting_mtx; |
890 | 888 | ||
891 | /* | 889 | /* |
@@ -1011,8 +1009,8 @@ void ide_proc_register_port(ide_hwif_t *); | |||
1011 | void ide_proc_port_register_devices(ide_hwif_t *); | 1009 | void ide_proc_port_register_devices(ide_hwif_t *); |
1012 | void ide_proc_unregister_device(ide_drive_t *); | 1010 | void ide_proc_unregister_device(ide_drive_t *); |
1013 | void ide_proc_unregister_port(ide_hwif_t *); | 1011 | void ide_proc_unregister_port(ide_hwif_t *); |
1014 | void ide_proc_register_driver(ide_drive_t *, ide_driver_t *); | 1012 | void ide_proc_register_driver(ide_drive_t *, struct ide_driver *); |
1015 | void ide_proc_unregister_driver(ide_drive_t *, ide_driver_t *); | 1013 | void ide_proc_unregister_driver(ide_drive_t *, struct ide_driver *); |
1016 | 1014 | ||
1017 | read_proc_t proc_ide_read_capacity; | 1015 | read_proc_t proc_ide_read_capacity; |
1018 | read_proc_t proc_ide_read_geometry; | 1016 | read_proc_t proc_ide_read_geometry; |
@@ -1039,8 +1037,10 @@ static inline void ide_proc_register_port(ide_hwif_t *hwif) { ; } | |||
1039 | static inline void ide_proc_port_register_devices(ide_hwif_t *hwif) { ; } | 1037 | static inline void ide_proc_port_register_devices(ide_hwif_t *hwif) { ; } |
1040 | static inline void ide_proc_unregister_device(ide_drive_t *drive) { ; } | 1038 | static inline void ide_proc_unregister_device(ide_drive_t *drive) { ; } |
1041 | static inline void ide_proc_unregister_port(ide_hwif_t *hwif) { ; } | 1039 | static inline void ide_proc_unregister_port(ide_hwif_t *hwif) { ; } |
1042 | static inline void ide_proc_register_driver(ide_drive_t *drive, ide_driver_t *driver) { ; } | 1040 | static inline void ide_proc_register_driver(ide_drive_t *drive, |
1043 | static inline void ide_proc_unregister_driver(ide_drive_t *drive, ide_driver_t *driver) { ; } | 1041 | struct ide_driver *driver) { ; } |
1042 | static inline void ide_proc_unregister_driver(ide_drive_t *drive, | ||
1043 | struct ide_driver *driver) { ; } | ||
1044 | #define PROC_IDE_READ_RETURN(page,start,off,count,eof,len) return 0; | 1044 | #define PROC_IDE_READ_RETURN(page,start,off,count,eof,len) return 0; |
1045 | #endif | 1045 | #endif |
1046 | 1046 | ||
@@ -1109,7 +1109,7 @@ void ide_check_pm_state(ide_drive_t *, struct request *); | |||
1109 | * The gendriver.owner field should be set to the module owner of this driver. | 1109 | * The gendriver.owner field should be set to the module owner of this driver. |
1110 | * The gendriver.name field should be set to the name of this driver | 1110 | * The gendriver.name field should be set to the name of this driver |
1111 | */ | 1111 | */ |
1112 | struct ide_driver_s { | 1112 | struct ide_driver { |
1113 | const char *version; | 1113 | const char *version; |
1114 | ide_startstop_t (*do_request)(ide_drive_t *, struct request *, sector_t); | 1114 | ide_startstop_t (*do_request)(ide_drive_t *, struct request *, sector_t); |
1115 | int (*end_request)(ide_drive_t *, int, int); | 1115 | int (*end_request)(ide_drive_t *, int, int); |
@@ -1125,7 +1125,7 @@ struct ide_driver_s { | |||
1125 | #endif | 1125 | #endif |
1126 | }; | 1126 | }; |
1127 | 1127 | ||
1128 | #define to_ide_driver(drv) container_of(drv, ide_driver_t, gen_driver) | 1128 | #define to_ide_driver(drv) container_of(drv, struct ide_driver, gen_driver) |
1129 | 1129 | ||
1130 | int ide_device_get(ide_drive_t *); | 1130 | int ide_device_get(ide_drive_t *); |
1131 | void ide_device_put(ide_drive_t *); | 1131 | void ide_device_put(ide_drive_t *); |