]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/media/pci/zoran/zoran_procfs.c
procfs: new helper - PDE_DATA(inode)
[mirror_ubuntu-bionic-kernel.git] / drivers / media / pci / zoran / zoran_procfs.c
index e084b0a21b1b2dfd3b616ed7449d782e7b43dd89..07a104d2bd1d9d86e13800ae8457b48a55afd277 100644 (file)
@@ -130,14 +130,14 @@ static int zoran_show(struct seq_file *p, void *v)
 
 static int zoran_open(struct inode *inode, struct file *file)
 {
-       struct zoran *data = PDE(inode)->data;
+       struct zoran *data = PDE_DATA(inode);
        return single_open(file, zoran_show, data);
 }
 
 static ssize_t zoran_write(struct file *file, const char __user *buffer,
                        size_t count, loff_t *ppos)
 {
-       struct zoran *zr = PDE(file_inode(file))->data;
+       struct zoran *zr = PDE_DATA(file_inode(file));
        char *string, *sp;
        char *line, *ldelim, *varname, *svar, *tdelim;