]> git.ipfire.org Git - people/ms/linux.git/blobdiff - net/bluetooth/rfcomm/sock.c
Bluetooth: Change to use DEFINE_SHOW_ATTRIBUTE macro
[people/ms/linux.git] / net / bluetooth / rfcomm / sock.c
index d606e9212291608ea2e266238c0f65ce18d0c311..aa0db1d1bd9b4132963d1b78459426bfba300f76 100644 (file)
@@ -1020,17 +1020,7 @@ static int rfcomm_sock_debugfs_show(struct seq_file *f, void *p)
        return 0;
 }
 
-static int rfcomm_sock_debugfs_open(struct inode *inode, struct file *file)
-{
-       return single_open(file, rfcomm_sock_debugfs_show, inode->i_private);
-}
-
-static const struct file_operations rfcomm_sock_debugfs_fops = {
-       .open           = rfcomm_sock_debugfs_open,
-       .read           = seq_read,
-       .llseek         = seq_lseek,
-       .release        = single_release,
-};
+DEFINE_SHOW_ATTRIBUTE(rfcomm_sock_debugfs);
 
 static struct dentry *rfcomm_sock_debugfs;