diff options
Diffstat (limited to 'drivers/block/DAC960.c')
-rw-r--r-- | drivers/block/DAC960.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index 5b5ee79ff236..eb3950113e42 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c | |||
@@ -6473,7 +6473,7 @@ static int dac960_initial_status_proc_show(struct seq_file *m, void *v) | |||
6473 | 6473 | ||
6474 | static int dac960_initial_status_proc_open(struct inode *inode, struct file *file) | 6474 | static int dac960_initial_status_proc_open(struct inode *inode, struct file *file) |
6475 | { | 6475 | { |
6476 | return single_open(file, dac960_initial_status_proc_show, PDE(inode)->data); | 6476 | return single_open(file, dac960_initial_status_proc_show, PDE_DATA(inode)); |
6477 | } | 6477 | } |
6478 | 6478 | ||
6479 | static const struct file_operations dac960_initial_status_proc_fops = { | 6479 | static const struct file_operations dac960_initial_status_proc_fops = { |
@@ -6519,7 +6519,7 @@ static int dac960_current_status_proc_show(struct seq_file *m, void *v) | |||
6519 | 6519 | ||
6520 | static int dac960_current_status_proc_open(struct inode *inode, struct file *file) | 6520 | static int dac960_current_status_proc_open(struct inode *inode, struct file *file) |
6521 | { | 6521 | { |
6522 | return single_open(file, dac960_current_status_proc_show, PDE(inode)->data); | 6522 | return single_open(file, dac960_current_status_proc_show, PDE_DATA(inode)); |
6523 | } | 6523 | } |
6524 | 6524 | ||
6525 | static const struct file_operations dac960_current_status_proc_fops = { | 6525 | static const struct file_operations dac960_current_status_proc_fops = { |
@@ -6540,14 +6540,14 @@ static int dac960_user_command_proc_show(struct seq_file *m, void *v) | |||
6540 | 6540 | ||
6541 | static int dac960_user_command_proc_open(struct inode *inode, struct file *file) | 6541 | static int dac960_user_command_proc_open(struct inode *inode, struct file *file) |
6542 | { | 6542 | { |
6543 | return single_open(file, dac960_user_command_proc_show, PDE(inode)->data); | 6543 | return single_open(file, dac960_user_command_proc_show, PDE_DATA(inode)); |
6544 | } | 6544 | } |
6545 | 6545 | ||
6546 | static ssize_t dac960_user_command_proc_write(struct file *file, | 6546 | static ssize_t dac960_user_command_proc_write(struct file *file, |
6547 | const char __user *Buffer, | 6547 | const char __user *Buffer, |
6548 | size_t Count, loff_t *pos) | 6548 | size_t Count, loff_t *pos) |
6549 | { | 6549 | { |
6550 | DAC960_Controller_T *Controller = (DAC960_Controller_T *) PDE(file_inode(file))->data; | 6550 | DAC960_Controller_T *Controller = PDE_DATA(file_inode(file)); |
6551 | unsigned char CommandBuffer[80]; | 6551 | unsigned char CommandBuffer[80]; |
6552 | int Length; | 6552 | int Length; |
6553 | if (Count > sizeof(CommandBuffer)-1) return -EINVAL; | 6553 | if (Count > sizeof(CommandBuffer)-1) return -EINVAL; |