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
a083a531
Commit
a083a531
authored
Jun 08, 2018
by
Jiri Kosina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-4.18/rmi' into for-linus
RMI4 correct split report handling from Benjamin Tissoires
parents
d06e56c6
c94ba060
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
drivers/hid/hid-rmi.c
drivers/hid/hid-rmi.c
+20
-0
No files found.
drivers/hid/hid-rmi.c
View file @
a083a531
...
...
@@ -413,6 +413,24 @@ static int rmi_event(struct hid_device *hdev, struct hid_field *field,
return
0
;
}
static
void
rmi_report
(
struct
hid_device
*
hid
,
struct
hid_report
*
report
)
{
struct
hid_field
*
field
=
report
->
field
[
0
];
if
(
!
(
hid
->
claimed
&
HID_CLAIMED_INPUT
))
return
;
switch
(
report
->
id
)
{
case
RMI_READ_DATA_REPORT_ID
:
/* fall-through */
case
RMI_ATTN_REPORT_ID
:
return
;
}
if
(
field
&&
field
->
hidinput
&&
field
->
hidinput
->
input
)
input_sync
(
field
->
hidinput
->
input
);
}
#ifdef CONFIG_PM
static
int
rmi_suspend
(
struct
hid_device
*
hdev
,
pm_message_t
message
)
{
...
...
@@ -637,6 +655,7 @@ static int rmi_probe(struct hid_device *hdev, const struct hid_device_id *id)
hid_set_drvdata
(
hdev
,
data
);
hdev
->
quirks
|=
HID_QUIRK_NO_INIT_REPORTS
;
hdev
->
quirks
|=
HID_QUIRK_NO_INPUT_SYNC
;
ret
=
hid_parse
(
hdev
);
if
(
ret
)
{
...
...
@@ -744,6 +763,7 @@ static struct hid_driver rmi_driver = {
.
remove
=
rmi_remove
,
.
event
=
rmi_event
,
.
raw_event
=
rmi_raw_event
,
.
report
=
rmi_report
,
.
input_mapping
=
rmi_input_mapping
,
.
input_configured
=
rmi_input_configured
,
#ifdef CONFIG_PM
...
...
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