Re: [PATCH RFC] debugfs: rename, export, and use default_open() asdebugfs_default_open()

From: Stephen Boyd
Date: Wed Mar 21 2012 - 03:33:37 EST


On 3/20/2012 3:47 PM, H Hartley Sweeten wrote:
> Rename default_open() in fs/debugfs/file.c to debugfs_default_open()
> and export it for use by the many debugfs open() methods that simply
> do:
>
> static int foo_open(struct inode *inode, struct file *file)
> {
> file->private_data = inode->i_private;
> return 0;
> }
>
> Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
>
> ---
>

I sent a patch to introduce simple_open() which is this function ripped
from debugfs code. I also sent a patch to fixup all the callers
(including the non-debugfs ones). Seems like we arrived at the same
thing. Andrew has picked it up and it is in -mm.

--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/