diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-17 12:09:13 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-17 12:09:13 -0400 |
commit | 79cb380397c834a35952d8497651d93b543ef968 (patch) | |
tree | cfeb4b1c69327df9f8885d18fa0d0ef3e547cce4 /drivers/ide/ide-cd.c | |
parent | 9a6eb74d07f9152dd0e0ea551e878e869b8d2fc1 (diff) |
ide: allow device drivers to specify per-device type /proc settings
Turn ide_driver_t's 'proc' field into ->proc_entries method
(and also 'settings' field into ->proc_devsets method). Then
update all device drivers accordingly.
There should be no functional changes caused by this patch.
Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 2f4cc10391e5..32073666b9ca 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -1908,6 +1908,16 @@ static const struct ide_proc_devset idecd_settings[] = { | |||
1908 | IDE_PROC_DEVSET(dsc_overlap, 0, 1), | 1908 | IDE_PROC_DEVSET(dsc_overlap, 0, 1), |
1909 | { 0 }, | 1909 | { 0 }, |
1910 | }; | 1910 | }; |
1911 | |||
1912 | static ide_proc_entry_t *ide_cd_proc_entries(ide_drive_t *drive) | ||
1913 | { | ||
1914 | return idecd_proc; | ||
1915 | } | ||
1916 | |||
1917 | static const struct ide_proc_devset *ide_cd_proc_devsets(ide_drive_t *drive) | ||
1918 | { | ||
1919 | return idecd_settings; | ||
1920 | } | ||
1911 | #endif | 1921 | #endif |
1912 | 1922 | ||
1913 | static const struct cd_list_entry ide_cd_quirks_list[] = { | 1923 | static const struct cd_list_entry ide_cd_quirks_list[] = { |
@@ -2069,8 +2079,8 @@ static ide_driver_t ide_cdrom_driver = { | |||
2069 | .end_request = ide_end_request, | 2079 | .end_request = ide_end_request, |
2070 | .error = __ide_error, | 2080 | .error = __ide_error, |
2071 | #ifdef CONFIG_IDE_PROC_FS | 2081 | #ifdef CONFIG_IDE_PROC_FS |
2072 | .proc = idecd_proc, | 2082 | .proc_entries = ide_cd_proc_entries, |
2073 | .settings = idecd_settings, | 2083 | .proc_devsets = ide_cd_proc_devsets, |
2074 | #endif | 2084 | #endif |
2075 | }; | 2085 | }; |
2076 | 2086 | ||