Re: [PATCH 1/4] debugfs: Consolidate file mode checks in debugfs_create_*()

2015-10-12 Thread Viresh Kumar
On 12-10-15, 18:09, Stephen Boyd wrote: > The code that creates debugfs file with different file ops based > on the file mode is duplicated in each debugfs_create_*() API. > Consolidate that code into debugfs_create_mode(), that takes > three file ops structures so that we don't have to keep > copy

[PATCH 1/4] debugfs: Consolidate file mode checks in debugfs_create_*()

2015-10-12 Thread Stephen Boyd
The code that creates debugfs file with different file ops based on the file mode is duplicated in each debugfs_create_*() API. Consolidate that code into debugfs_create_mode(), that takes three file ops structures so that we don't have to keep copy/pasting that logic. Signed-off-by: Stephen Boyd