diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-21 09:17:57 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-22 08:11:49 +0200 |
commit | ade522c6dd373c3d292de6a2ccd6ffb8d55371e9 (patch) | |
tree | 49eb30e9556561b5d24b0d34f416704e56e632f1 /include | |
parent | 6f267eae9efe21e29c513643cd552e596a3ac53c (diff) | |
download | barebox-ade522c6dd373c3d292de6a2ccd6ffb8d55371e9.tar.gz barebox-ade522c6dd373c3d292de6a2ccd6ffb8d55371e9.tar.xz |
USB: gadget: DFU: register as USB function
Register DFU as usb_function_instance to make it work with composite
gadgets. Also use this internally for registering as DFU device (with
the 'dfu' command).
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb/dfu.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/usb/dfu.h b/include/usb/dfu.h index f9dd38169e..560a0318fe 100644 --- a/include/usb/dfu.h +++ b/include/usb/dfu.h @@ -22,11 +22,13 @@ #include <linux/types.h> #include <file-list.h> +#include <usb/composite.h> -struct usb_dfu_pdata { - struct file_list *files; +struct f_dfu_opts { + struct usb_function_instance func_inst; + struct file_list *files; }; -int usb_dfu_register(struct usb_dfu_pdata *); +int usb_dfu_register(struct f_dfu_opts *); #endif /* _USB_DFU_H */ |