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
nexedi
linux
Commits
c1d8b7db
Commit
c1d8b7db
authored
Dec 03, 2002
by
Romain Liévin
Committed by
Greg Kroah-Hartman
Dec 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: tiglusb update
- a patch against 2.5.50 (clean-up and includes Randy Dunlap's patch).
parent
5a2480df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
drivers/usb/misc/tiglusb.c
drivers/usb/misc/tiglusb.c
+10
-15
No files found.
drivers/usb/misc/tiglusb.c
View file @
c1d8b7db
...
@@ -15,16 +15,11 @@
...
@@ -15,16 +15,11 @@
* for more info.
* for more info.
*
*
* History :
* History :
* 16/07/2002 : v1.04 -- Julien BLACHE <jb@jblache.org>
* 1.0x, Romain & Julien: initial submit.
* + removed useless usblp_cleanup()
* 1.03, Greg Kroah: modifications.
* + removed {un,}lock_kernel() as suggested on lkml
* 1.04, Julien: clean-up & fixes; Romain: 2.4 backport.
* + inlined clear_pipes() (used once)
* 1.05, Randy Dunlap: bug fix with the timeout parameter (divide-by-zero).
* + inlined clear_device() (small, used twice)
* 1.06, Romain: synched with 2.5, version/firmware changed (confusing).
* + removed tiglusb_find_struct() (used once, simple code)
* + replaced down() with down_interruptible() wherever possible
* + fixed double unregistering wrt devfs, causing devfs
* to force an oops when the device is deconnected
* + removed unused fields from struct tiglusb_t
*/
*/
#include <linux/module.h>
#include <linux/module.h>
...
@@ -44,7 +39,7 @@
...
@@ -44,7 +39,7 @@
/*
/*
* Version Information
* Version Information
*/
*/
#define DRIVER_VERSION "1.0
4
"
#define DRIVER_VERSION "1.0
6
"
#define DRIVER_AUTHOR "Romain Lievin <roms@lpg.ticalc.org> & Julien Blache <jb@jblache.org>"
#define DRIVER_AUTHOR "Romain Lievin <roms@lpg.ticalc.org> & Julien Blache <jb@jblache.org>"
#define DRIVER_DESC "TI-GRAPH LINK USB (aka SilverLink) driver"
#define DRIVER_DESC "TI-GRAPH LINK USB (aka SilverLink) driver"
#define DRIVER_LICENSE "GPL"
#define DRIVER_LICENSE "GPL"
...
@@ -387,7 +382,7 @@ tiglusb_probe (struct usb_interface *intf,
...
@@ -387,7 +382,7 @@ tiglusb_probe (struct usb_interface *intf,
&
tiglusb_fops
,
NULL
);
&
tiglusb_fops
,
NULL
);
/* Display firmware version */
/* Display firmware version */
info
(
"
link cable ver
sion %i.%02x"
,
info
(
"
firmware revi
sion %i.%02x"
,
dev
->
descriptor
.
bcdDevice
>>
8
,
dev
->
descriptor
.
bcdDevice
>>
8
,
dev
->
descriptor
.
bcdDevice
&
0xff
);
dev
->
descriptor
.
bcdDevice
&
0xff
);
...
@@ -453,7 +448,7 @@ tiglusb_setup (char *str)
...
@@ -453,7 +448,7 @@ tiglusb_setup (char *str)
if
(
ints
[
0
]
>
0
)
{
if
(
ints
[
0
]
>
0
)
{
timeout
=
ints
[
1
];
timeout
=
ints
[
1
];
}
}
if
(
!
timeout
)
if
(
timeout
<=
0
)
timeout
=
TIMAXTIME
;
timeout
=
TIMAXTIME
;
return
1
;
return
1
;
...
@@ -494,9 +489,9 @@ tiglusb_init (void)
...
@@ -494,9 +489,9 @@ tiglusb_init (void)
return
-
1
;
return
-
1
;
}
}
info
(
DRIVER_DESC
", "
DRIVER_VERSION
);
info
(
DRIVER_DESC
",
version
"
DRIVER_VERSION
);
if
(
!
timeout
)
if
(
timeout
<=
0
)
timeout
=
TIMAXTIME
;
timeout
=
TIMAXTIME
;
return
0
;
return
0
;
...
...
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