]> git.dujemihanovic.xyz Git - u-boot.git/commit
fastboot: Extract fastboot_okay/fail to fb_common.c
authorAlex Kiernan <alex.kiernan@gmail.com>
Tue, 29 May 2018 15:30:41 +0000 (15:30 +0000)
committerMarek Vasut <marex@denx.de>
Wed, 30 May 2018 09:59:21 +0000 (11:59 +0200)
commitd2df2abbcd4b88539605f8329edd244e6474d7a0
tree572a2ecdd83b6f84715ad5033e60dd95f6373b4d
parentc4ded03ef608be37db105200010d2f3f88195bd6
fastboot: Extract fastboot_okay/fail to fb_common.c

Add drivers/fastboot/fb_common.c, where fastboot_okay/fail are implemented
so we can call them from a non-USB implementation.

Introduce fastboot_response which takes varargs parameters so we can
use it to generate formatted response strings. Refactor fastboot_okay/fail
to use it.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/Makefile
drivers/fastboot/Makefile
drivers/fastboot/fb_common.c [new file with mode: 0644]
drivers/usb/gadget/f_fastboot.c
include/fastboot.h