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
fab2462a
Commit
fab2462a
authored
Aug 27, 2002
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor endianness and debugging fixes. Most thanks to Dave Miller.
parent
8598f48b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/usb/input/hid-core.c
drivers/usb/input/hid-core.c
+3
-3
No files found.
drivers/usb/input/hid-core.c
View file @
fab2462a
...
@@ -879,7 +879,7 @@ static int hid_input_report(int type, struct urb *urb)
...
@@ -879,7 +879,7 @@ static int hid_input_report(int type, struct urb *urb)
{
{
int
i
;
int
i
;
printk
(
KERN_DEBUG
__FILE__
": report %d (size %u) = "
,
n
,
len
);
printk
(
KERN_DEBUG
__FILE__
": report %d (size %u) = "
,
n
,
len
);
for
(
i
=
0
;
i
<
n
;
i
++
)
for
(
i
=
0
;
i
<
le
n
;
i
++
)
printk
(
" %02x"
,
data
[
i
]);
printk
(
" %02x"
,
data
[
i
]);
printk
(
"
\n
"
);
printk
(
"
\n
"
);
}
}
...
@@ -1384,7 +1384,7 @@ static struct hid_device *usb_hid_configure(struct usb_device *dev, int ifnum)
...
@@ -1384,7 +1384,7 @@ static struct hid_device *usb_hid_configure(struct usb_device *dev, int ifnum)
#ifdef DEBUG_DATA
#ifdef DEBUG_DATA
printk
(
KERN_DEBUG
__FILE__
": report descriptor (size %u, read %d) = "
,
rsize
,
n
);
printk
(
KERN_DEBUG
__FILE__
": report descriptor (size %u, read %d) = "
,
rsize
,
n
);
for
(
n
=
0
;
n
<
rsize
;
n
++
)
for
(
n
=
0
;
n
<
rsize
;
n
++
)
printk
(
" %02x"
,
(
unsigned
)
rdesc
[
n
]);
printk
(
" %02x"
,
(
unsigned
char
)
rdesc
[
n
]);
printk
(
"
\n
"
);
printk
(
"
\n
"
);
#endif
#endif
...
@@ -1432,7 +1432,7 @@ static struct hid_device *usb_hid_configure(struct usb_device *dev, int ifnum)
...
@@ -1432,7 +1432,7 @@ static struct hid_device *usb_hid_configure(struct usb_device *dev, int ifnum)
hid
->
outlock
=
SPIN_LOCK_UNLOCKED
;
hid
->
outlock
=
SPIN_LOCK_UNLOCKED
;
hid
->
ctrllock
=
SPIN_LOCK_UNLOCKED
;
hid
->
ctrllock
=
SPIN_LOCK_UNLOCKED
;
hid
->
version
=
hdesc
->
bcdHID
;
hid
->
version
=
le16_to_cpu
(
hdesc
->
bcdHID
)
;
hid
->
country
=
hdesc
->
bCountryCode
;
hid
->
country
=
hdesc
->
bCountryCode
;
hid
->
dev
=
dev
;
hid
->
dev
=
dev
;
hid
->
ifnum
=
interface
->
bInterfaceNumber
;
hid
->
ifnum
=
interface
->
bInterfaceNumber
;
...
...
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