]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: add sysfs_bin_read()
authorTejun Heo <tj@kernel.org>
Tue, 1 Oct 2013 21:42:06 +0000 (17:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Oct 2013 00:27:40 +0000 (17:27 -0700)
commit8e7d16d4ed12c4cfc45c533c396d8b39c4483737
treeb729d523dbb3fcdade4a6ce3a72027230a6b3fbb
parent77abbda0e9ccc1800b7d57373fc67ffd3c66fc8a
sysfs: add sysfs_bin_read()

sysfs bin file handling will be merged into the regular file support.
This patch prepares the read path.

Copy fs/sysfs/bin.c::read() to fs/sysfs/file.c and make it use
sysfs_open_file instead of bin_buffer.  The function is identical copy
except for the use of sysfs_open_file.

The new function is added to sysfs_bin_operations.  This isn't used
yet but will eventually replace fs/sysfs/bin.c.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/file.c