RE: [PATCH RFC] debugfs: rename, export, and use default_open() asdebugfs_default_open()
From: H Hartley Sweeten
Date: Wed Mar 21 2012 - 12:16:17 EST
On Wednesday, March 21, 2012 12:34 AM, Stephen Boyd wrote:
> 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.
Thanks for the info. I had not seen your patch.
Regards,
Hartley
èº{.nÇ+·®+%Ëlzwm
ébëæìr¸zX§»®w¥{ayºÊÚë,j¢f£¢·hàz¹®w¥¢¸¢·¦j:+v¨wèjØm¶ÿ¾«êçzZ+ùÝj"ú!¶iOæ¬z·vØ^¶m§ÿðÃnÆàþY&