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
3279bbce
Commit
3279bbce
authored
Jan 22, 2003
by
Duncan Sands
Committed by
Greg Kroah-Hartman
Jan 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: trivial speedtouch changes
speedtouch: trivial whitespace and debug message changes.
parent
b62e645d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
14 deletions
+21
-14
drivers/usb/misc/speedtouch.c
drivers/usb/misc/speedtouch.c
+21
-14
No files found.
drivers/usb/misc/speedtouch.c
View file @
3279bbce
...
...
@@ -108,9 +108,9 @@
/* usb_device_id struct */
static
struct
usb_device_id
udsl_usb_ids
[]
=
{
{
USB_DEVICE
(
SPEEDTOUCH_VENDORID
,
SPEEDTOUCH_PRODUCTID
)
},
{
}
/* list terminator
*/
static
struct
usb_device_id
udsl_usb_ids
[]
=
{
{
USB_DEVICE
(
SPEEDTOUCH_VENDORID
,
SPEEDTOUCH_PRODUCTID
)
},
{
}
/* Terminating entry
*/
};
MODULE_DEVICE_TABLE
(
usb
,
udsl_usb_ids
);
...
...
@@ -141,7 +141,7 @@ struct udsl_instance_data {
struct
usb_device
*
usb_dev
;
struct
udsl_data_ctx
*
rcvbufs
;
struct
sk_buff_head
sndqueue
;
struct
udsl_usb_send_data_context
send_ctx
[
UDSL_NUMBER_SND_URBS
];
struct
udsl_usb_send_data_context
send_ctx
[
UDSL_NUMBER_SND_URBS
];
int
data_started
;
/* atm device part */
...
...
@@ -151,7 +151,7 @@ struct udsl_instance_data {
struct
atmsar_vcc_data
*
atmsar_vcc_list
;
};
static
const
char
udsl_driver_name
[]
=
"Alcatel SpeedTouch USB"
;
static
const
char
udsl_driver_name
[]
=
"Alcatel SpeedTouch USB"
;
static
DECLARE_MUTEX
(
udsl_usb_ioctl_lock
);
...
...
@@ -201,6 +201,7 @@ static struct usb_driver udsl_usb_driver = {
.
id_table
=
udsl_usb_ids
,
};
/************
** ATM **
************/
...
...
@@ -254,7 +255,7 @@ static void udsl_atm_stopdevice (struct udsl_instance_data *instance)
MOD_DEC_USE_COUNT
;
}
static
void
udsl_atm_set_mac
(
struct
udsl_instance_data
*
instance
,
const
char
mac
[
6
])
static
void
udsl_atm_set_mac
(
struct
udsl_instance_data
*
instance
,
const
char
mac
[
6
])
{
if
(
!
instance
->
atm_dev
)
return
;
...
...
@@ -262,6 +263,7 @@ static void udsl_atm_set_mac (struct udsl_instance_data *instance, const char ma
memcpy
(
instance
->
atm_dev
->
esi
,
mac
,
6
);
}
/***************************************************************************
*
* ATM helper functions
...
...
@@ -309,6 +311,7 @@ static int udsl_atm_proc_read (struct atm_dev *atm_dev, loff_t * pos, char *page
return
0
;
}
/***************************************************************************
*
* ATM DATA functions
...
...
@@ -832,8 +835,8 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
struct
usb_device
*
dev
=
interface_to_usbdev
(
intf
);
int
ifnum
=
intf
->
altsetting
->
desc
.
bInterfaceNumber
;
int
i
;
unsigned
char
mac
[
6
];
unsigned
char
mac_str
[
13
];
unsigned
char
mac
[
6
];
unsigned
char
mac_str
[
13
];
struct
udsl_instance_data
*
instance
=
NULL
;
PDEBUG
(
"Trying device with Vendor=0x%x, Product=0x%x, ifnum %d
\n
"
,
...
...
@@ -897,6 +900,7 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
}
}
/***************************************************************************
*
* Driver Init
...
...
@@ -905,19 +909,26 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
static
int
__init
udsl_usb_init
(
void
)
{
PDEBUG
(
"
Initializing SpeedTouch Driver V
ersion "
DRIVER_VERSION
"
\n
"
);
PDEBUG
(
"
udsl_usb_init: driver v
ersion "
DRIVER_VERSION
"
\n
"
);
return
usb_register
(
&
udsl_usb_driver
);
}
static
void
__exit
udsl_usb_cleanup
(
void
)
{
PDEBUG
(
"udsl_usb_cleanup
\n
"
);
usb_deregister
(
&
udsl_usb_driver
);
}
module_init
(
udsl_usb_init
);
module_exit
(
udsl_usb_cleanup
);
MODULE_AUTHOR
(
DRIVER_AUTHOR
);
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
#ifdef DEBUG_PACKET
/*******************************************************************************
*
...
...
@@ -927,7 +938,7 @@ module_exit(udsl_usb_cleanup);
static
int
udsl_print_packet
(
const
unsigned
char
*
data
,
int
len
)
{
unsigned
char
buffer
[
256
];
unsigned
char
buffer
[
256
];
int
i
=
0
,
j
=
0
;
for
(
i
=
0
;
i
<
len
;)
{
...
...
@@ -942,7 +953,3 @@ static int udsl_print_packet (const unsigned char *data, int len)
};
#endif
/* PACKETDEBUG */
MODULE_AUTHOR
(
DRIVER_AUTHOR
);
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
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