summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-disk.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 21:39:45 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 21:39:45 +0200
commit06b89518fa69fb7243dc98c31f9a9cfa61bfe788 (patch)
treec343692a440f551da2a09d22cf644df9e093b426 /drivers/ide/ide-disk.h
parentf87904898e91923a91b925078ac933f05076c7fd (diff)
downloadlinux-06b89518fa69fb7243dc98c31f9a9cfa61bfe788.tar.gz
linux-06b89518fa69fb7243dc98c31f9a9cfa61bfe788.tar.bz2
linux-06b89518fa69fb7243dc98c31f9a9cfa61bfe788.zip
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.h7
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 {
container_of((disk)->private_data, struct ide_disk_obj, driver)
/* ide-disk.c */
+sector_t ide_disk_capacity(ide_drive_t *);
ide_decl_devset(address);
ide_decl_devset(multcount);
ide_decl_devset(nowerr);
@@ -22,4 +23,10 @@ ide_decl_devset(acoustic);
/* ide-disk_ioctl.c */
int ide_disk_ioctl(struct inode *, struct file *, unsigned int, unsigned long);
+#ifdef CONFIG_IDE_PROC_FS
+/* ide-disk_proc.c */
+extern ide_proc_entry_t ide_disk_proc[];
+extern const struct ide_proc_devset ide_disk_settings[];
+#endif
+
#endif /* __IDE_DISK_H */