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
d06e56c6
Commit
d06e56c6
authored
Jun 08, 2018
by
Jiri Kosina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-4.18/plantronics' into for-linus
parents
25721aef
37e376df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
drivers/hid/hid-plantronics.c
drivers/hid/hid-plantronics.c
+5
-1
No files found.
drivers/hid/hid-plantronics.c
View file @
d06e56c6
...
...
@@ -2,7 +2,7 @@
* Plantronics USB HID Driver
*
* Copyright (c) 2014 JD Cole <jd.cole@plantronics.com>
* Copyright (c) 2015 Terry Junge <terry.junge@plantronics.com>
* Copyright (c) 2015
-2018
Terry Junge <terry.junge@plantronics.com>
*/
/*
...
...
@@ -48,6 +48,10 @@ static int plantronics_input_mapping(struct hid_device *hdev,
unsigned
short
mapped_key
;
unsigned
long
plt_type
=
(
unsigned
long
)
hid_get_drvdata
(
hdev
);
/* special case for PTT products */
if
(
field
->
application
==
HID_GD_JOYSTICK
)
goto
defaulted
;
/* handle volume up/down mapping */
/* non-standard types or multi-HID interfaces - plt_type is PID */
if
(
!
(
plt_type
&
HID_USAGE_PAGE
))
{
...
...
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