diff options
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-cd.c | 2 | ||||
-rw-r--r-- | drivers/ide/ide-disk_proc.c | 8 | ||||
-rw-r--r-- | drivers/ide/ide-floppy_proc.c | 2 | ||||
-rw-r--r-- | drivers/ide/ide-proc.c | 22 | ||||
-rw-r--r-- | drivers/ide/ide-tape.c | 2 |
5 files changed, 18 insertions, 18 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 8126824daccb..b23113926388 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -1408,7 +1408,7 @@ static int idecd_capacity_proc_show(struct seq_file *m, void *v) | |||
1408 | 1408 | ||
1409 | static int idecd_capacity_proc_open(struct inode *inode, struct file *file) | 1409 | static int idecd_capacity_proc_open(struct inode *inode, struct file *file) |
1410 | { | 1410 | { |
1411 | return single_open(file, idecd_capacity_proc_show, PDE(inode)->data); | 1411 | return single_open(file, idecd_capacity_proc_show, PDE_DATA(inode)); |
1412 | } | 1412 | } |
1413 | 1413 | ||
1414 | static const struct file_operations idecd_capacity_proc_fops = { | 1414 | static const struct file_operations idecd_capacity_proc_fops = { |
diff --git a/drivers/ide/ide-disk_proc.c b/drivers/ide/ide-disk_proc.c index 8b570a17bcd9..0d1fae6cba6d 100644 --- a/drivers/ide/ide-disk_proc.c +++ b/drivers/ide/ide-disk_proc.c | |||
@@ -53,7 +53,7 @@ static int idedisk_cache_proc_show(struct seq_file *m, void *v) | |||
53 | 53 | ||
54 | static int idedisk_cache_proc_open(struct inode *inode, struct file *file) | 54 | static int idedisk_cache_proc_open(struct inode *inode, struct file *file) |
55 | { | 55 | { |
56 | return single_open(file, idedisk_cache_proc_show, PDE(inode)->data); | 56 | return single_open(file, idedisk_cache_proc_show, PDE_DATA(inode)); |
57 | } | 57 | } |
58 | 58 | ||
59 | static const struct file_operations idedisk_cache_proc_fops = { | 59 | static const struct file_operations idedisk_cache_proc_fops = { |
@@ -74,7 +74,7 @@ static int idedisk_capacity_proc_show(struct seq_file *m, void *v) | |||
74 | 74 | ||
75 | static int idedisk_capacity_proc_open(struct inode *inode, struct file *file) | 75 | static int idedisk_capacity_proc_open(struct inode *inode, struct file *file) |
76 | { | 76 | { |
77 | return single_open(file, idedisk_capacity_proc_show, PDE(inode)->data); | 77 | return single_open(file, idedisk_capacity_proc_show, PDE_DATA(inode)); |
78 | } | 78 | } |
79 | 79 | ||
80 | static const struct file_operations idedisk_capacity_proc_fops = { | 80 | static const struct file_operations idedisk_capacity_proc_fops = { |
@@ -115,7 +115,7 @@ static int idedisk_sv_proc_show(struct seq_file *m, void *v) | |||
115 | 115 | ||
116 | static int idedisk_sv_proc_open(struct inode *inode, struct file *file) | 116 | static int idedisk_sv_proc_open(struct inode *inode, struct file *file) |
117 | { | 117 | { |
118 | return single_open(file, idedisk_sv_proc_show, PDE(inode)->data); | 118 | return single_open(file, idedisk_sv_proc_show, PDE_DATA(inode)); |
119 | } | 119 | } |
120 | 120 | ||
121 | static const struct file_operations idedisk_sv_proc_fops = { | 121 | static const struct file_operations idedisk_sv_proc_fops = { |
@@ -133,7 +133,7 @@ static int idedisk_st_proc_show(struct seq_file *m, void *v) | |||
133 | 133 | ||
134 | static int idedisk_st_proc_open(struct inode *inode, struct file *file) | 134 | static int idedisk_st_proc_open(struct inode *inode, struct file *file) |
135 | { | 135 | { |
136 | return single_open(file, idedisk_st_proc_show, PDE(inode)->data); | 136 | return single_open(file, idedisk_st_proc_show, PDE_DATA(inode)); |
137 | } | 137 | } |
138 | 138 | ||
139 | static const struct file_operations idedisk_st_proc_fops = { | 139 | static const struct file_operations idedisk_st_proc_fops = { |
diff --git a/drivers/ide/ide-floppy_proc.c b/drivers/ide/ide-floppy_proc.c index 1600720f3e86..e7a25ea757df 100644 --- a/drivers/ide/ide-floppy_proc.c +++ b/drivers/ide/ide-floppy_proc.c | |||
@@ -15,7 +15,7 @@ static int idefloppy_capacity_proc_show(struct seq_file *m, void *v) | |||
15 | 15 | ||
16 | static int idefloppy_capacity_proc_open(struct inode *inode, struct file *file) | 16 | static int idefloppy_capacity_proc_open(struct inode *inode, struct file *file) |
17 | { | 17 | { |
18 | return single_open(file, idefloppy_capacity_proc_show, PDE(inode)->data); | 18 | return single_open(file, idefloppy_capacity_proc_show, PDE_DATA(inode)); |
19 | } | 19 | } |
20 | 20 | ||
21 | static const struct file_operations idefloppy_capacity_proc_fops = { | 21 | static const struct file_operations idefloppy_capacity_proc_fops = { |
diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c index 2abcc4790f12..97c070077774 100644 --- a/drivers/ide/ide-proc.c +++ b/drivers/ide/ide-proc.c | |||
@@ -58,7 +58,7 @@ static int ide_imodel_proc_show(struct seq_file *m, void *v) | |||
58 | 58 | ||
59 | static int ide_imodel_proc_open(struct inode *inode, struct file *file) | 59 | static int ide_imodel_proc_open(struct inode *inode, struct file *file) |
60 | { | 60 | { |
61 | return single_open(file, ide_imodel_proc_show, PDE(inode)->data); | 61 | return single_open(file, ide_imodel_proc_show, PDE_DATA(inode)); |
62 | } | 62 | } |
63 | 63 | ||
64 | static const struct file_operations ide_imodel_proc_fops = { | 64 | static const struct file_operations ide_imodel_proc_fops = { |
@@ -82,7 +82,7 @@ static int ide_mate_proc_show(struct seq_file *m, void *v) | |||
82 | 82 | ||
83 | static int ide_mate_proc_open(struct inode *inode, struct file *file) | 83 | static int ide_mate_proc_open(struct inode *inode, struct file *file) |
84 | { | 84 | { |
85 | return single_open(file, ide_mate_proc_show, PDE(inode)->data); | 85 | return single_open(file, ide_mate_proc_show, PDE_DATA(inode)); |
86 | } | 86 | } |
87 | 87 | ||
88 | static const struct file_operations ide_mate_proc_fops = { | 88 | static const struct file_operations ide_mate_proc_fops = { |
@@ -103,7 +103,7 @@ static int ide_channel_proc_show(struct seq_file *m, void *v) | |||
103 | 103 | ||
104 | static int ide_channel_proc_open(struct inode *inode, struct file *file) | 104 | static int ide_channel_proc_open(struct inode *inode, struct file *file) |
105 | { | 105 | { |
106 | return single_open(file, ide_channel_proc_show, PDE(inode)->data); | 106 | return single_open(file, ide_channel_proc_show, PDE_DATA(inode)); |
107 | } | 107 | } |
108 | 108 | ||
109 | static const struct file_operations ide_channel_proc_fops = { | 109 | static const struct file_operations ide_channel_proc_fops = { |
@@ -143,7 +143,7 @@ static int ide_identify_proc_show(struct seq_file *m, void *v) | |||
143 | 143 | ||
144 | static int ide_identify_proc_open(struct inode *inode, struct file *file) | 144 | static int ide_identify_proc_open(struct inode *inode, struct file *file) |
145 | { | 145 | { |
146 | return single_open(file, ide_identify_proc_show, PDE(inode)->data); | 146 | return single_open(file, ide_identify_proc_show, PDE_DATA(inode)); |
147 | } | 147 | } |
148 | 148 | ||
149 | static const struct file_operations ide_identify_proc_fops = { | 149 | static const struct file_operations ide_identify_proc_fops = { |
@@ -325,7 +325,7 @@ static int ide_settings_proc_show(struct seq_file *m, void *v) | |||
325 | 325 | ||
326 | static int ide_settings_proc_open(struct inode *inode, struct file *file) | 326 | static int ide_settings_proc_open(struct inode *inode, struct file *file) |
327 | { | 327 | { |
328 | return single_open(file, ide_settings_proc_show, PDE(inode)->data); | 328 | return single_open(file, ide_settings_proc_show, PDE_DATA(inode)); |
329 | } | 329 | } |
330 | 330 | ||
331 | #define MAX_LEN 30 | 331 | #define MAX_LEN 30 |
@@ -333,7 +333,7 @@ static int ide_settings_proc_open(struct inode *inode, struct file *file) | |||
333 | static ssize_t ide_settings_proc_write(struct file *file, const char __user *buffer, | 333 | static ssize_t ide_settings_proc_write(struct file *file, const char __user *buffer, |
334 | size_t count, loff_t *pos) | 334 | size_t count, loff_t *pos) |
335 | { | 335 | { |
336 | ide_drive_t *drive = (ide_drive_t *) PDE(file_inode(file))->data; | 336 | ide_drive_t *drive = PDE_DATA(file_inode(file)); |
337 | char name[MAX_LEN + 1]; | 337 | char name[MAX_LEN + 1]; |
338 | int for_real = 0, mul_factor, div_factor; | 338 | int for_real = 0, mul_factor, div_factor; |
339 | unsigned long n; | 339 | unsigned long n; |
@@ -474,7 +474,7 @@ static int ide_geometry_proc_show(struct seq_file *m, void *v) | |||
474 | 474 | ||
475 | static int ide_geometry_proc_open(struct inode *inode, struct file *file) | 475 | static int ide_geometry_proc_open(struct inode *inode, struct file *file) |
476 | { | 476 | { |
477 | return single_open(file, ide_geometry_proc_show, PDE(inode)->data); | 477 | return single_open(file, ide_geometry_proc_show, PDE_DATA(inode)); |
478 | } | 478 | } |
479 | 479 | ||
480 | const struct file_operations ide_geometry_proc_fops = { | 480 | const struct file_operations ide_geometry_proc_fops = { |
@@ -497,7 +497,7 @@ static int ide_dmodel_proc_show(struct seq_file *seq, void *v) | |||
497 | 497 | ||
498 | static int ide_dmodel_proc_open(struct inode *inode, struct file *file) | 498 | static int ide_dmodel_proc_open(struct inode *inode, struct file *file) |
499 | { | 499 | { |
500 | return single_open(file, ide_dmodel_proc_show, PDE(inode)->data); | 500 | return single_open(file, ide_dmodel_proc_show, PDE_DATA(inode)); |
501 | } | 501 | } |
502 | 502 | ||
503 | static const struct file_operations ide_dmodel_proc_fops = { | 503 | static const struct file_operations ide_dmodel_proc_fops = { |
@@ -525,7 +525,7 @@ static int ide_driver_proc_show(struct seq_file *m, void *v) | |||
525 | 525 | ||
526 | static int ide_driver_proc_open(struct inode *inode, struct file *file) | 526 | static int ide_driver_proc_open(struct inode *inode, struct file *file) |
527 | { | 527 | { |
528 | return single_open(file, ide_driver_proc_show, PDE(inode)->data); | 528 | return single_open(file, ide_driver_proc_show, PDE_DATA(inode)); |
529 | } | 529 | } |
530 | 530 | ||
531 | static int ide_replace_subdriver(ide_drive_t *drive, const char *driver) | 531 | static int ide_replace_subdriver(ide_drive_t *drive, const char *driver) |
@@ -558,7 +558,7 @@ static int ide_replace_subdriver(ide_drive_t *drive, const char *driver) | |||
558 | static ssize_t ide_driver_proc_write(struct file *file, const char __user *buffer, | 558 | static ssize_t ide_driver_proc_write(struct file *file, const char __user *buffer, |
559 | size_t count, loff_t *pos) | 559 | size_t count, loff_t *pos) |
560 | { | 560 | { |
561 | ide_drive_t *drive = (ide_drive_t *) PDE(file_inode(file))->data; | 561 | ide_drive_t *drive = PDE_DATA(file_inode(file)); |
562 | char name[32]; | 562 | char name[32]; |
563 | 563 | ||
564 | if (!capable(CAP_SYS_ADMIN)) | 564 | if (!capable(CAP_SYS_ADMIN)) |
@@ -601,7 +601,7 @@ static int ide_media_proc_show(struct seq_file *m, void *v) | |||
601 | 601 | ||
602 | static int ide_media_proc_open(struct inode *inode, struct file *file) | 602 | static int ide_media_proc_open(struct inode *inode, struct file *file) |
603 | { | 603 | { |
604 | return single_open(file, ide_media_proc_show, PDE(inode)->data); | 604 | return single_open(file, ide_media_proc_show, PDE_DATA(inode)); |
605 | } | 605 | } |
606 | 606 | ||
607 | static const struct file_operations ide_media_proc_fops = { | 607 | static const struct file_operations ide_media_proc_fops = { |
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index ce8237d36159..89f859591bbb 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -1847,7 +1847,7 @@ static int idetape_name_proc_show(struct seq_file *m, void *v) | |||
1847 | 1847 | ||
1848 | static int idetape_name_proc_open(struct inode *inode, struct file *file) | 1848 | static int idetape_name_proc_open(struct inode *inode, struct file *file) |
1849 | { | 1849 | { |
1850 | return single_open(file, idetape_name_proc_show, PDE(inode)->data); | 1850 | return single_open(file, idetape_name_proc_show, PDE_DATA(inode)); |
1851 | } | 1851 | } |
1852 | 1852 | ||
1853 | static const struct file_operations idetape_name_proc_fops = { | 1853 | static const struct file_operations idetape_name_proc_fops = { |