]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libfs: add simple_open()
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 4 Apr 2012 00:07:57 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 4 Apr 2012 03:07:15 +0000 (13:07 +1000)
commit27cce35d55513a54e4a45090ed05315d5e081514
treea510125df263e1d8910246d5ffa6335d7c6011ae
parent9c3f259b27555332c4907b02820da0722bae6292
libfs: add simple_open()

debugfs and a few other drivers use an open-coded version of simple_open()
to pass a pointer from the file to the read/write file ops.  Add support
for this simple case to libfs so that we can remove the many duplicate
copies of this simple function.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/libfs.c
include/linux/fs.h