aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-cd.c2
-rw-r--r--drivers/ide/ide-disk_proc.c8
-rw-r--r--drivers/ide/ide-floppy_proc.c2
-rw-r--r--drivers/ide/ide-proc.c22
-rw-r--r--drivers/ide/ide-tape.c2
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
1409static int idecd_capacity_proc_open(struct inode *inode, struct file *file) 1409static 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
1414static const struct file_operations idecd_capacity_proc_fops = { 1414static 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
54static int idedisk_cache_proc_open(struct inode *inode, struct file *file) 54static 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
59static const struct file_operations idedisk_cache_proc_fops = { 59static 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
75static int idedisk_capacity_proc_open(struct inode *inode, struct file *file) 75static 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
80static const struct file_operations idedisk_capacity_proc_fops = { 80static 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
116static int idedisk_sv_proc_open(struct inode *inode, struct file *file) 116static 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
121static const struct file_operations idedisk_sv_proc_fops = { 121static 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
134static int idedisk_st_proc_open(struct inode *inode, struct file *file) 134static 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
139static const struct file_operations idedisk_st_proc_fops = { 139static 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
16static int idefloppy_capacity_proc_open(struct inode *inode, struct file *file) 16static 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
21static const struct file_operations idefloppy_capacity_proc_fops = { 21static 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
59static int ide_imodel_proc_open(struct inode *inode, struct file *file) 59static 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
64static const struct file_operations ide_imodel_proc_fops = { 64static 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
83static int ide_mate_proc_open(struct inode *inode, struct file *file) 83static 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
88static const struct file_operations ide_mate_proc_fops = { 88static 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
104static int ide_channel_proc_open(struct inode *inode, struct file *file) 104static 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
109static const struct file_operations ide_channel_proc_fops = { 109static 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
144static int ide_identify_proc_open(struct inode *inode, struct file *file) 144static 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
149static const struct file_operations ide_identify_proc_fops = { 149static 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
326static int ide_settings_proc_open(struct inode *inode, struct file *file) 326static 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)
333static ssize_t ide_settings_proc_write(struct file *file, const char __user *buffer, 333static 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
475static int ide_geometry_proc_open(struct inode *inode, struct file *file) 475static 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
480const struct file_operations ide_geometry_proc_fops = { 480const 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
498static int ide_dmodel_proc_open(struct inode *inode, struct file *file) 498static 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
503static const struct file_operations ide_dmodel_proc_fops = { 503static 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
526static int ide_driver_proc_open(struct inode *inode, struct file *file) 526static 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
531static int ide_replace_subdriver(ide_drive_t *drive, const char *driver) 531static 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)
558static ssize_t ide_driver_proc_write(struct file *file, const char __user *buffer, 558static 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
602static int ide_media_proc_open(struct inode *inode, struct file *file) 602static 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
607static const struct file_operations ide_media_proc_fops = { 607static 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
1848static int idetape_name_proc_open(struct inode *inode, struct file *file) 1848static 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
1853static const struct file_operations idetape_name_proc_fops = { 1853static const struct file_operations idetape_name_proc_fops = {