Messages in this thread | | | Date | Wed, 21 Mar 2012 00:33:38 -0700 | From | Stephen Boyd <> | Subject | Re: [PATCH RFC] debugfs: rename, export, and use default_open() as debugfs_default_open() |
| |
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@visionengravers.com> > > --- >
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.
| |