bbu: Add "handler" parameter to barebox_update()
Add "handler" parameter to barebox_update() and remove the code that
was respondible for header lookup before. With this change finding
appropriate handler is caller's responsibility, which makes it
possible to implement custom handler lookup/existence check, chache
it, and then re-use it without calling handler_find_by_* functions for
the second time.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 76b44a3 commit c4ed3b223126e69d697fbf482ab60e125bbe3d43
@Andrey Smirnov Andrey Smirnov authored on 8 Oct 2018
Sascha Hauer committed on 8 Oct 2018
Showing 4 changed files
View
commands/barebox-update.c
View
common/bbu.c
View
drivers/usb/gadget/f_fastboot.c
View
include/bbu.h