diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:45 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:45 -0400 |
commit | 06b89518fa69fb7243dc98c31f9a9cfa61bfe788 (patch) | |
tree | c343692a440f551da2a09d22cf644df9e093b426 /drivers/ide/ide-disk.h | |
parent | f87904898e91923a91b925078ac933f05076c7fd (diff) |
ide-disk: move /proc handling to ide-disk_proc.c (take 3)
While at it:
- idedisk_capacity() -> ide_disk_capacity()
- idedisk_proc[] -> ide_disk_proc[]
- idedisk_settings[] -> ide_disk_settings[]
v2/3:
Build fix for CONFIG_IDE_PROC_FS=n from Elias Oltmanns.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-disk.h')
-rw-r--r-- | drivers/ide/ide-disk.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ide/ide-disk.h b/drivers/ide/ide-disk.h index 7f007854adac..a82fa4355665 100644 --- a/drivers/ide/ide-disk.h +++ b/drivers/ide/ide-disk.h | |||
@@ -13,6 +13,7 @@ struct ide_disk_obj { | |||
13 | container_of((disk)->private_data, struct ide_disk_obj, driver) | 13 | container_of((disk)->private_data, struct ide_disk_obj, driver) |
14 | 14 | ||
15 | /* ide-disk.c */ | 15 | /* ide-disk.c */ |
16 | sector_t ide_disk_capacity(ide_drive_t *); | ||
16 | ide_decl_devset(address); | 17 | ide_decl_devset(address); |
17 | ide_decl_devset(multcount); | 18 | ide_decl_devset(multcount); |
18 | ide_decl_devset(nowerr); | 19 | ide_decl_devset(nowerr); |
@@ -22,4 +23,10 @@ ide_decl_devset(acoustic); | |||
22 | /* ide-disk_ioctl.c */ | 23 | /* ide-disk_ioctl.c */ |
23 | int ide_disk_ioctl(struct inode *, struct file *, unsigned int, unsigned long); | 24 | int ide_disk_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
24 | 25 | ||
26 | #ifdef CONFIG_IDE_PROC_FS | ||
27 | /* ide-disk_proc.c */ | ||
28 | extern ide_proc_entry_t ide_disk_proc[]; | ||
29 | extern const struct ide_proc_devset ide_disk_settings[]; | ||
30 | #endif | ||
31 | |||
25 | #endif /* __IDE_DISK_H */ | 32 | #endif /* __IDE_DISK_H */ |