proc: remove PDE_DATA() completely
[sfrench/cifs-2.6.git] / drivers / net / wireless / intersil / hostap / hostap_proc.c
index 51c847d98755d0c17dde822daea3128dc8adeb94..61f68786056f40c4188f9a0c1e49ef7630e28bca 100644 (file)
@@ -97,20 +97,20 @@ static int prism2_wds_proc_show(struct seq_file *m, void *v)
 
 static void *prism2_wds_proc_start(struct seq_file *m, loff_t *_pos)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
        read_lock_bh(&local->iface_lock);
        return seq_list_start(&local->hostap_interfaces, *_pos);
 }
 
 static void *prism2_wds_proc_next(struct seq_file *m, void *v, loff_t *_pos)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
        return seq_list_next(v, &local->hostap_interfaces, _pos);
 }
 
 static void prism2_wds_proc_stop(struct seq_file *m, void *v)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
        read_unlock_bh(&local->iface_lock);
 }
 
@@ -123,7 +123,7 @@ static const struct seq_operations prism2_wds_proc_seqops = {
 
 static int prism2_bss_list_proc_show(struct seq_file *m, void *v)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
        struct list_head *ptr = v;
        struct hostap_bss_info *bss;
 
@@ -151,21 +151,21 @@ static int prism2_bss_list_proc_show(struct seq_file *m, void *v)
 static void *prism2_bss_list_proc_start(struct seq_file *m, loff_t *_pos)
        __acquires(&local->lock)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
        spin_lock_bh(&local->lock);
        return seq_list_start_head(&local->bss_list, *_pos);
 }
 
 static void *prism2_bss_list_proc_next(struct seq_file *m, void *v, loff_t *_pos)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
        return seq_list_next(v, &local->bss_list, _pos);
 }
 
 static void prism2_bss_list_proc_stop(struct seq_file *m, void *v)
        __releases(&local->lock)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
        spin_unlock_bh(&local->lock);
 }
 
@@ -198,7 +198,7 @@ static int prism2_crypt_proc_show(struct seq_file *m, void *v)
 static ssize_t prism2_pda_proc_read(struct file *file, char __user *buf,
                                    size_t count, loff_t *_pos)
 {
-       local_info_t *local = PDE_DATA(file_inode(file));
+       local_info_t *local = pde_data(file_inode(file));
        size_t off;
 
        if (local->pda == NULL || *_pos >= PRISM2_PDA_SIZE)
@@ -272,7 +272,7 @@ static int prism2_io_debug_proc_read(char *page, char **start, off_t off,
 #ifndef PRISM2_NO_STATION_MODES
 static int prism2_scan_results_proc_show(struct seq_file *m, void *v)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
        unsigned long entry;
        int i, len;
        struct hfa384x_hostscan_result *scanres;
@@ -322,7 +322,7 @@ static int prism2_scan_results_proc_show(struct seq_file *m, void *v)
 
 static void *prism2_scan_results_proc_start(struct seq_file *m, loff_t *_pos)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
        spin_lock_bh(&local->lock);
 
        /* We have a header (pos 0) + N results to show (pos 1...N) */
@@ -333,7 +333,7 @@ static void *prism2_scan_results_proc_start(struct seq_file *m, loff_t *_pos)
 
 static void *prism2_scan_results_proc_next(struct seq_file *m, void *v, loff_t *_pos)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
 
        ++*_pos;
        if (*_pos > local->last_scan_results_count)
@@ -343,7 +343,7 @@ static void *prism2_scan_results_proc_next(struct seq_file *m, void *v, loff_t *
 
 static void prism2_scan_results_proc_stop(struct seq_file *m, void *v)
 {
-       local_info_t *local = PDE_DATA(file_inode(m->file));
+       local_info_t *local = pde_data(file_inode(m->file));
        spin_unlock_bh(&local->lock);
 }