Small cleanup in ide
Hi!
This cleans ide a tiny bit. Please apply.
Pavel
include/linux/ide.h +2 -2
@@ -382,12 +383,12 @@unsigned int cyl;/* "real" number of cyls */ unsigned long capacity;/* total number of sectors */ unsigned int drive_data;/* for use by tuneproc/selectproc as needed */ -void *hwif;/* actually (ide_hwif_t *) */ +struct ide_hwif_s *hwif;/* actually (ide_hwif_t *) */ wait_queue_head_t wqueue;/* used to wait for drive in open() */ struct hd_driveid *id;/* drive model identification info */ struct hd_struct *part;/* drive partition table */ char name[4 ];/* drive name, such as "hda" */ -void *driver;/* (ide_driver_t *) */ +struct ide_driver_s *driver;/* (ide_driver_t *) */ void *driver_data;/* extra driver data */ devfs_handle_t de;/* directory for device */ struct proc_dir_entry *proc;/* /proc/ide/ directory entry */
drivers/ide/ide-proc.c +3 -3
@@ -582,13 +582,13 @@ (char *page, char **start, off_t off, int count, int *eof, void *data) {ide_drive_t *drive = (ide_drive_t *) data; -ide_driver_t *driver = (ide_driver_t *) drive->driver; +ide_driver_t *driver = drive->driver;int len;if (!driver) len =sprintf (page,"(none)\n" );else - len =sprintf (page,"%li\n" , ((ide_driver_t *)drive->driver)->capacity (drive)); + len =sprintf (page,"%li\n" , drive->driver->capacity (drive));PROC_IDE_READ_RETURN (page,start,off,count,eof,len); }
@@ -620,7 +620,7 @@ (char *page, char **start, off_t off, int count, int *eof, void *data) {ide_drive_t *drive = (ide_drive_t *) data; -ide_driver_t *driver = (ide_driver_t *) drive->driver; +ide_driver_t *driver = drive->driver;int len;if (!driver)
Signature · 2 lines
(about SSSCA) "I don't say this lightly. However, I really think that the U.S. no longer is classifiable as a democracy, but rather as a plutocracy." --hpa