Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
0944bf45
Commit
0944bf45
authored
Jan 22, 2004
by
David Brownell
Committed by
Greg Kroah-Hartman
Jan 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB gadget: zero config updates
Use new boolean CONFIG_* symbols.
parent
ee4cefc7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/usb/gadget/zero.c
drivers/usb/gadget/zero.c
+5
-5
No files found.
drivers/usb/gadget/zero.c
View file @
0944bf45
...
@@ -131,7 +131,7 @@ static const char loopback [] = "loop input to output";
...
@@ -131,7 +131,7 @@ static const char loopback [] = "loop input to output";
* DMA channels to manage their FIFOs. It supports high speed.
* DMA channels to manage their FIFOs. It supports high speed.
* Those endpoints can be arranged in any desired configuration.
* Those endpoints can be arranged in any desired configuration.
*/
*/
#if
def CONFIG_USB_ZERO_NET2280
#if
defined(CONFIG_USB_GADGET_NET2280) || defined(CONFIG_USB_GADGET_DUMMY_HCD)
#define CHIP "net2280"
#define CHIP "net2280"
#define DRIVER_VERSION_NUM 0x0101
#define DRIVER_VERSION_NUM 0x0101
static
const
char
EP_OUT_NAME
[]
=
"ep-a"
;
static
const
char
EP_OUT_NAME
[]
=
"ep-a"
;
...
@@ -154,7 +154,7 @@ static const char EP_IN_NAME [] = "ep-b";
...
@@ -154,7 +154,7 @@ static const char EP_IN_NAME [] = "ep-b";
* can't use altsettings or reset the interfaces independently.
* can't use altsettings or reset the interfaces independently.
* So stick to a single interface.
* So stick to a single interface.
*/
*/
#ifdef CONFIG_USB_
ZERO
_PXA2XX
#ifdef CONFIG_USB_
GADGET
_PXA2XX
#define CHIP "pxa2xx"
#define CHIP "pxa2xx"
#define DRIVER_VERSION_NUM 0x0103
#define DRIVER_VERSION_NUM 0x0103
static
const
char
EP_OUT_NAME
[]
=
"ep12out-bulk"
;
static
const
char
EP_OUT_NAME
[]
=
"ep12out-bulk"
;
...
@@ -176,7 +176,7 @@ static const char EP_IN_NAME [] = "ep11in-bulk";
...
@@ -176,7 +176,7 @@ static const char EP_IN_NAME [] = "ep11in-bulk";
* in special situations. So this is a case of "choose it right
* in special situations. So this is a case of "choose it right
* during enumeration" ...
* during enumeration" ...
*/
*/
#ifdef CONFIG_USB_
ZERO
_SA1100
#ifdef CONFIG_USB_
GADGET
_SA1100
#define CHIP "sa1100"
#define CHIP "sa1100"
#define DRIVER_VERSION_NUM 0x0105
#define DRIVER_VERSION_NUM 0x0105
static
const
char
EP_OUT_NAME
[]
=
"ep1out-bulk"
;
static
const
char
EP_OUT_NAME
[]
=
"ep1out-bulk"
;
...
@@ -192,7 +192,7 @@ static const char EP_IN_NAME [] = "ep2in-bulk";
...
@@ -192,7 +192,7 @@ static const char EP_IN_NAME [] = "ep2in-bulk";
*
*
* This has three semi-configurable full speed bulk/interrupt endpoints.
* This has three semi-configurable full speed bulk/interrupt endpoints.
*/
*/
#ifdef CONFIG_USB_
ZERO
_GOKU
#ifdef CONFIG_USB_
GADGET
_GOKU
#define CHIP "goku"
#define CHIP "goku"
#define DRIVER_VERSION_NUM 0x0106
#define DRIVER_VERSION_NUM 0x0106
static
const
char
EP_OUT_NAME
[]
=
"ep1-bulk"
;
static
const
char
EP_OUT_NAME
[]
=
"ep1-bulk"
;
...
@@ -936,7 +936,7 @@ zero_set_config (struct zero_dev *dev, unsigned number, int gfp_flags)
...
@@ -936,7 +936,7 @@ zero_set_config (struct zero_dev *dev, unsigned number, int gfp_flags)
if
(
number
==
dev
->
config
)
if
(
number
==
dev
->
config
)
return
0
;
return
0
;
#ifdef CONFIG_USB_
ZERO
_SA1100
#ifdef CONFIG_USB_
GADGET
_SA1100
if
(
dev
->
config
)
{
if
(
dev
->
config
)
{
/* tx fifo is full, but we can't clear it...*/
/* tx fifo is full, but we can't clear it...*/
INFO
(
dev
,
"can't change configurations
\n
"
);
INFO
(
dev
,
"can't change configurations
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment