bcache: Replace bch_read_string_list() by __sysfs_match_string()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 28 May 2018 07:37:44 +0000 (15:37 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 28 May 2018 20:53:22 +0000 (14:53 -0600)
commitce4c3e19e5201424357a0c82176633b32a98d2ec
treedfb444c2ff7c7fe31eb56315a32daefacc527190
parentecb37ce9baac653cc09e2b631393dde3df82979f
bcache: Replace bch_read_string_list() by __sysfs_match_string()

Kernel library has a common function to match user input from sysfs
against an array of strings. Thus, replace bch_read_string_list() by
__sysfs_match_string().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/sysfs.c