diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-10-07 23:35:15 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-08 10:07:12 +0200 |
commit | 76b44a34fc00772319395a84e67b8f816804f5bc (patch) | |
tree | b3034a3c8288abe4191ae154dbafb14ebd9e6de4 /drivers | |
parent | b73bc6e3035933e796564ba962c71d5775554f86 (diff) | |
download | barebox-76b44a34fc00772319395a84e67b8f816804f5bc.tar.gz barebox-76b44a34fc00772319395a84e67b8f816804f5bc.tar.xz |
bbu: Expose bbu_find_handler_by_*() functions
Expose bbu_find_handler_by_device() and bbu_find_handler_by_name() as
public functions and convert the only user of
barebox_update_handler_exists() to use the former function instead.
With this done, barebox_update_handler_exists() is no longer used
anywhere in the code and can be removed.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/f_fastboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 40a78987e4..0f25c13998 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -991,7 +991,7 @@ static void cb_flash(struct f_fastboot *f_fb, const char *cmd) .flags = BBU_FLAG_YES, }; - if (!barebox_update_handler_exists(&data)) + if (!bbu_find_handler_by_device(data.devicefile)) goto copy; fastboot_tx_print(f_fb, "INFOThis is a barebox image..."); |