sysfs: prepare open path for unified regular / bin file handling
authorTejun Heo <tj@kernel.org>
Tue, 1 Oct 2013 21:42:08 +0000 (17:42 -0400)
committerPawel Osmialowski <p.osmialowsk@mcdsrvbld02.digital.local>
Fri, 27 Mar 2015 17:13:11 +0000 (18:13 +0100)
commit61a90bb0ee4979873b0c67b132b4decd7d494ebd
treee0ba9d4310debf0c622f6bbddd5277d72ccaacbd
parentfcaf1508847715892a602f125fb854ecf39bff78
sysfs: prepare open path for unified regular / bin file handling

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

This patch updates sysfs_open_file() such that it can handle both
regular and bin files.

This is a preparation and the new bin file path isn't used yet.

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