bbu: Simplify bbu_find_handler_by_device()
Simplify bbu_find_handler_by_device() by making use of
devpath_to_name() as well as some basic recursion to avoid coding the
same loop twice.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 0ad523b commit b28a47e994ba184bbecb468b2ff9abd08f976111
@Andrey Smirnov Andrey Smirnov authored on 8 Oct 2018
Sascha Hauer committed on 8 Oct 2018
Showing 1 changed file
View
common/bbu.c