diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-10-13 04:09:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-18 08:09:03 +0300 |
commit | b97f679954b7771183f3c0a6a47b17e185e64a8a (patch) | |
tree | 0b91b510adba6a9c2016e603ea1fb624164a3eac /net/lapb/lapb_subr.c | |
parent | 8346aa765e14348b7b436825b3c4740895a2fe1a (diff) | |
download | linux-b97f679954b7771183f3c0a6a47b17e185e64a8a.tar.xz |
debugfs: Consolidate file mode checks in debugfs_create_*()
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 <sboyd@codeaurora.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions