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
abf8e9a2
Commit
abf8e9a2
authored
Apr 09, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix uss720 driver to work properly with recent parport changes.
parent
ff238d67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
38 deletions
+25
-38
drivers/usb/misc/uss720.c
drivers/usb/misc/uss720.c
+25
-38
No files found.
drivers/usb/misc/uss720.c
View file @
abf8e9a2
...
...
@@ -493,54 +493,42 @@ static size_t parport_uss720_write_compat(struct parport *pp, const void *buffer
return
rlen
;
}
void
parport_uss720_inc_use_count
(
void
)
{
MOD_INC_USE_COUNT
;
}
void
parport_uss720_dec_use_count
(
void
)
{
MOD_DEC_USE_COUNT
;
}
/* --------------------------------------------------------------------- */
static
struct
parport_operations
parport_uss720_ops
=
{
parport_uss720_write_data
,
parport_uss720_read_data
,
parport_uss720_write_control
,
parport_uss720_read_control
,
parport_uss720_frob_control
,
.
owner
=
THIS_MODULE
,
.
write_data
=
parport_uss720_write_data
,
.
read_data
=
parport_uss720_read_data
,
parport_uss720_read_status
,
.
write_control
=
parport_uss720_write_control
,
.
read_control
=
parport_uss720_read_control
,
.
frob_control
=
parport_uss720_frob_control
,
parport_uss720_enable_irq
,
parport_uss720_disable_irq
,
.
read_status
=
parport_uss720_read_status
,
parport_uss720_data_forward
,
parport_uss720_data_reverse
,
.
enable_irq
=
parport_uss720_enable_irq
,
.
disable_irq
=
parport_uss720_disable_irq
,
parport_uss720_init_state
,
parport_uss720_save_state
,
parport_uss720_restore_state
,
.
data_forward
=
parport_uss720_data_forward
,
.
data_reverse
=
parport_uss720_data_reverse
,
parport_uss720_inc_use_count
,
parport_uss720_dec_use_count
,
.
init_state
=
parport_uss720_init_state
,
.
save_state
=
parport_uss720_save_state
,
.
restore_state
=
parport_uss720_restore_state
,
parport_uss720_epp_write_data
,
parport_uss720_epp_read_data
,
parport_uss720_epp_write_addr
,
parport_uss720_epp_read_addr
,
.
epp_write_data
=
parport_uss720_epp_write_data
,
.
epp_read_data
=
parport_uss720_epp_read_data
,
.
epp_write_addr
=
parport_uss720_epp_write_addr
,
.
epp_read_addr
=
parport_uss720_epp_read_addr
,
parport_uss720_ecp_write_data
,
parport_uss720_ecp_read_data
,
parport_uss720_ecp_write_addr
,
.
ecp_write_data
=
parport_uss720_ecp_write_data
,
.
ecp_read_data
=
parport_uss720_ecp_read_data
,
.
ecp_write_addr
=
parport_uss720_ecp_write_addr
,
parport_uss720_write_compat
,
parport_ieee1284_read_nibble
,
parport_ieee1284_read_byte
,
.
compat_write_data
=
parport_uss720_write_compat
,
.
nibble_read_data
=
parport_ieee1284_read_nibble
,
.
byte_read_data
=
parport_ieee1284_read_byte
,
};
/* --------------------------------------------------------------------- */
...
...
@@ -607,7 +595,6 @@ static int uss720_probe(struct usb_interface *intf,
parport_proc_register
(
pp
);
parport_announce_port
(
pp
);
MOD_INC_USE_COUNT
;
usb_set_intfdata
(
intf
,
pp
);
return
0
;
...
...
@@ -635,7 +622,6 @@ static void uss720_disconnect(struct usb_interface *intf)
parport_proc_unregister
(
pp
);
parport_unregister_port
(
pp
);
kfree
(
priv
);
MOD_DEC_USE_COUNT
;
}
}
...
...
@@ -652,6 +638,7 @@ MODULE_DEVICE_TABLE (usb, uss720_table);
static
struct
usb_driver
uss720_driver
=
{
.
owner
=
THIS_MODULE
,
.
name
=
"uss720"
,
.
probe
=
uss720_probe
,
.
disconnect
=
uss720_disconnect
,
...
...
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