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)
commit2f0c6b7593a590eef7fa35344da57380fcee7581
treeb729d523dbb3fcdade4a6ce3a72027230a6b3fbb
parentf9b9a6217cf10fd5d3002627cc13c4789a777213
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