fs: Introduce devpath_to_name()
Add a simple function to simplify the task of accepting both full path
in "/dev" and just device name as a parameter.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent dbe6452 commit a92a63473ee2b9079d1f3e6a158b8255074c069a
@Andrey Smirnov Andrey Smirnov authored on 4 Dec 2017
Sascha Hauer committed on 6 Dec 2017
Showing 1 changed file
View
include/fs.h