diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-04-07 12:43:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-04-11 12:36:26 +0200 |
commit | 7c15f466dfe74bcc384889ada065592a9447d8a6 (patch) | |
tree | 348dc7324fa91e0092e0bd18e2414459f15be95d /include/usb | |
parent | a03277592f756fedbdf4dae9d64c073e59a18a74 (diff) | |
download | barebox-7c15f466dfe74bcc384889ada065592a9447d8a6.tar.gz barebox-7c15f466dfe74bcc384889ada065592a9447d8a6.tar.xz |
commands: seperate usb command from usb core
This patch makes the USB command optional and makes usb_rescan a
global function. This way we can use USB in noninteractive
environments.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r-- | include/usb/usb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb/usb.h b/include/usb/usb.h index 1e4d750ca9..6ef9977497 100644 --- a/include/usb/usb.h +++ b/include/usb/usb.h @@ -252,6 +252,8 @@ int usb_clear_halt(struct usb_device *dev, int pipe); int usb_string(struct usb_device *dev, int index, char *buf, size_t size); int usb_set_interface(struct usb_device *dev, int interface, int alternate); +void usb_rescan(void); + /* big endian -> little endian conversion */ /* some CPUs are already little endian e.g. the ARM920T */ #define __swap_16(x) \ |