]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - sound/soc/imx/imx-audmux.c
simple_open: automatically convert to simple_open()
[karo-tx-linux.git] / sound / soc / imx / imx-audmux.c
index 601df809a26a857bbcc4c007e72afcab99138fd8..1765a197acb0ab14d0a54cda8751dd45fa7b71fb 100644 (file)
@@ -40,12 +40,6 @@ static void __iomem *audmux_base;
 #ifdef CONFIG_DEBUG_FS
 static struct dentry *audmux_debugfs_root;
 
-static int audmux_open_file(struct inode *inode, struct file *file)
-{
-       file->private_data = inode->i_private;
-       return 0;
-}
-
 /* There is an annoying discontinuity in the SSI numbering with regard
  * to the Linux number of the devices */
 static const char *audmux_port_string(int port)
@@ -142,7 +136,7 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf,
 }
 
 static const struct file_operations audmux_debugfs_fops = {
-       .open = audmux_open_file,
+       .open = simple_open,
        .read = audmux_read_file,
        .llseek = default_llseek,
 };