]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fastboot: Extract common definitions from USB fastboot
authorAlex Kiernan <alex.kiernan@gmail.com>
Tue, 29 May 2018 15:30:47 +0000 (15:30 +0000)
committerMarek Vasut <marex@denx.de>
Wed, 30 May 2018 09:59:21 +0000 (11:59 +0200)
Move FASTBOOT_VERSION to include/fastboot.h so when we merge the UDP code
we only have one definition.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/usb/gadget/f_fastboot.c
include/fastboot.h

index 697eee57d002644f148a5d383baffdaf75864b64..25784a193eb300a5eec34dc2fee141a018a5a89f 100644 (file)
@@ -27,8 +27,6 @@
 #include <fb_nand.h>
 #endif
 
-#define FASTBOOT_VERSION               "0.4"
-
 #define FASTBOOT_INTERFACE_CLASS       0xff
 #define FASTBOOT_INTERFACE_SUB_CLASS   0x42
 #define FASTBOOT_INTERFACE_PROTOCOL    0x03
index 816e71b4d0d5d77caa7403f8f0d1dd02bca80ece..bf3d9e2f6726c3baabc140c4834e45a1900e69f5 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef _FASTBOOT_H_
 #define _FASTBOOT_H_
 
+#define FASTBOOT_VERSION       "0.4"
+
 /* The 64 defined bytes plus \0 */
 #define FASTBOOT_RESPONSE_LEN  (64 + 1)