mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
USB: Make struct devrequest setup_packet local
Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Remy Bohmer <linux@bohmer.net> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
23faf2bc9e
commit
e159e4868e
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,6 @@ static struct usb_device usb_dev[USB_MAX_DEVICE];
|
||||||
static int dev_index;
|
static int dev_index;
|
||||||
static int running;
|
static int running;
|
||||||
static int asynch_allowed;
|
static int asynch_allowed;
|
||||||
static struct devrequest setup_packet;
|
|
||||||
|
|
||||||
char usb_started; /* flag for the started/stopped USB status */
|
char usb_started; /* flag for the started/stopped USB status */
|
||||||
|
|
||||||
|
@ -180,6 +179,8 @@ int usb_control_msg(struct usb_device *dev, unsigned int pipe,
|
||||||
unsigned short value, unsigned short index,
|
unsigned short value, unsigned short index,
|
||||||
void *data, unsigned short size, int timeout)
|
void *data, unsigned short size, int timeout)
|
||||||
{
|
{
|
||||||
|
struct devrequest setup_packet;
|
||||||
|
|
||||||
if ((timeout == 0) && (!asynch_allowed)) {
|
if ((timeout == 0) && (!asynch_allowed)) {
|
||||||
/* request for a asynch control pipe is not allowed */
|
/* request for a asynch control pipe is not allowed */
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue