aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-06 11:20:53 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-06 11:20:53 -0500
commit7f3c868ba78e486bd9d7569f884dd46d8f59bb18 (patch)
treec52ff0d21b22ae60194a462d565a6caf2518b569 /include/linux/ide.h
parent9892ec5497af1ec38c46974b5a370ba11c636b19 (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.h18
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
439struct ide_devset; 439struct ide_devset;
440struct ide_driver_s; 440struct ide_driver;
441 441
442#ifdef CONFIG_BLK_DEV_IDEACPI 442#ifdef CONFIG_BLK_DEV_IDEACPI
443struct ide_acpi_drive_link; 443struct 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. */
885typedef void (xfer_func_t)(ide_drive_t *, struct request *rq, void *, unsigned); 885typedef void (xfer_func_t)(ide_drive_t *, struct request *rq, void *, unsigned);
886 886
887typedef struct ide_driver_s ide_driver_t;
888
889extern struct mutex ide_setting_mtx; 887extern struct mutex ide_setting_mtx;
890 888
891/* 889/*
@@ -1011,8 +1009,8 @@ void ide_proc_register_port(ide_hwif_t *);
1011void ide_proc_port_register_devices(ide_hwif_t *); 1009void ide_proc_port_register_devices(ide_hwif_t *);
1012void ide_proc_unregister_device(ide_drive_t *); 1010void ide_proc_unregister_device(ide_drive_t *);
1013void ide_proc_unregister_port(ide_hwif_t *); 1011void ide_proc_unregister_port(ide_hwif_t *);
1014void ide_proc_register_driver(ide_drive_t *, ide_driver_t *); 1012void ide_proc_register_driver(ide_drive_t *, struct ide_driver *);
1015void ide_proc_unregister_driver(ide_drive_t *, ide_driver_t *); 1013void ide_proc_unregister_driver(ide_drive_t *, struct ide_driver *);
1016 1014
1017read_proc_t proc_ide_read_capacity; 1015read_proc_t proc_ide_read_capacity;
1018read_proc_t proc_ide_read_geometry; 1016read_proc_t proc_ide_read_geometry;
@@ -1039,8 +1037,10 @@ static inline void ide_proc_register_port(ide_hwif_t *hwif) { ; }
1039static inline void ide_proc_port_register_devices(ide_hwif_t *hwif) { ; } 1037static inline void ide_proc_port_register_devices(ide_hwif_t *hwif) { ; }
1040static inline void ide_proc_unregister_device(ide_drive_t *drive) { ; } 1038static inline void ide_proc_unregister_device(ide_drive_t *drive) { ; }
1041static inline void ide_proc_unregister_port(ide_hwif_t *hwif) { ; } 1039static inline void ide_proc_unregister_port(ide_hwif_t *hwif) { ; }
1042static inline void ide_proc_register_driver(ide_drive_t *drive, ide_driver_t *driver) { ; } 1040static inline void ide_proc_register_driver(ide_drive_t *drive,
1043static inline void ide_proc_unregister_driver(ide_drive_t *drive, ide_driver_t *driver) { ; } 1041 struct ide_driver *driver) { ; }
1042static 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 */
1112struct ide_driver_s { 1112struct 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
1130int ide_device_get(ide_drive_t *); 1130int ide_device_get(ide_drive_t *);
1131void ide_device_put(ide_drive_t *); 1131void ide_device_put(ide_drive_t *);