Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
11941a32
Commit
11941a32
authored
Apr 29, 2007
by
Jiri Kosina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'field-zeroing' into for-linus
parents
f61c9127
46386b58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
drivers/hid/hid-core.c
drivers/hid/hid-core.c
+5
-0
No files found.
drivers/hid/hid-core.c
View file @
11941a32
...
...
@@ -872,8 +872,13 @@ static void hid_output_field(struct hid_field *field, __u8 *data)
unsigned
count
=
field
->
report_count
;
unsigned
offset
=
field
->
report_offset
;
unsigned
size
=
field
->
report_size
;
unsigned
bitsused
=
offset
+
count
*
size
;
unsigned
n
;
/* make sure the unused bits in the last byte are zeros */
if
(
count
>
0
&&
size
>
0
&&
(
bitsused
%
8
)
!=
0
)
data
[(
bitsused
-
1
)
/
8
]
&=
(
1
<<
(
bitsused
%
8
))
-
1
;
for
(
n
=
0
;
n
<
count
;
n
++
)
{
if
(
field
->
logical_minimum
<
0
)
/* signed values */
implement
(
data
,
offset
+
n
*
size
,
size
,
s32ton
(
field
->
value
[
n
],
size
));
...
...
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