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
900a88ef
Commit
900a88ef
authored
Jun 20, 2017
by
Jiri Kosina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-4.12/upstream-fixes' into for-linus
parents
0ca4cd7b
53145c2e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
drivers/hid/hid-ids.h
drivers/hid/hid-ids.h
+3
-0
drivers/hid/hid-magicmouse.c
drivers/hid/hid-magicmouse.c
+7
-8
drivers/hid/usbhid/hid-quirks.c
drivers/hid/usbhid/hid-quirks.c
+1
-0
No files found.
drivers/hid/hid-ids.h
View file @
900a88ef
...
@@ -319,6 +319,9 @@
...
@@ -319,6 +319,9 @@
#define USB_VENDOR_ID_DELCOM 0x0fc5
#define USB_VENDOR_ID_DELCOM 0x0fc5
#define USB_DEVICE_ID_DELCOM_VISUAL_IND 0xb080
#define USB_DEVICE_ID_DELCOM_VISUAL_IND 0xb080
#define USB_VENDOR_ID_DELL 0x413c
#define USB_DEVICE_ID_DELL_PIXART_USB_OPTICAL_MOUSE 0x301a
#define USB_VENDOR_ID_DELORME 0x1163
#define USB_VENDOR_ID_DELORME 0x1163
#define USB_DEVICE_ID_DELORME_EARTHMATE 0x0100
#define USB_DEVICE_ID_DELORME_EARTHMATE 0x0100
#define USB_DEVICE_ID_DELORME_EM_LT20 0x0200
#define USB_DEVICE_ID_DELORME_EM_LT20 0x0200
...
...
drivers/hid/hid-magicmouse.c
View file @
900a88ef
...
@@ -349,7 +349,6 @@ static int magicmouse_raw_event(struct hid_device *hdev,
...
@@ -349,7 +349,6 @@ static int magicmouse_raw_event(struct hid_device *hdev,
if
(
input
->
id
.
product
==
USB_DEVICE_ID_APPLE_MAGICMOUSE
)
{
if
(
input
->
id
.
product
==
USB_DEVICE_ID_APPLE_MAGICMOUSE
)
{
magicmouse_emit_buttons
(
msc
,
clicks
&
3
);
magicmouse_emit_buttons
(
msc
,
clicks
&
3
);
input_mt_report_pointer_emulation
(
input
,
true
);
input_report_rel
(
input
,
REL_X
,
x
);
input_report_rel
(
input
,
REL_X
,
x
);
input_report_rel
(
input
,
REL_Y
,
y
);
input_report_rel
(
input
,
REL_Y
,
y
);
}
else
{
/* USB_DEVICE_ID_APPLE_MAGICTRACKPAD */
}
else
{
/* USB_DEVICE_ID_APPLE_MAGICTRACKPAD */
...
@@ -389,9 +388,6 @@ static int magicmouse_setup_input(struct input_dev *input, struct hid_device *hd
...
@@ -389,9 +388,6 @@ static int magicmouse_setup_input(struct input_dev *input, struct hid_device *hd
__clear_bit
(
BTN_RIGHT
,
input
->
keybit
);
__clear_bit
(
BTN_RIGHT
,
input
->
keybit
);
__clear_bit
(
BTN_MIDDLE
,
input
->
keybit
);
__clear_bit
(
BTN_MIDDLE
,
input
->
keybit
);
__set_bit
(
BTN_MOUSE
,
input
->
keybit
);
__set_bit
(
BTN_MOUSE
,
input
->
keybit
);
__set_bit
(
INPUT_PROP_BUTTONPAD
,
input
->
propbit
);
}
__set_bit
(
BTN_TOOL_FINGER
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_FINGER
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_DOUBLETAP
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_DOUBLETAP
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_TRIPLETAP
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_TRIPLETAP
,
input
->
keybit
);
...
@@ -399,6 +395,9 @@ static int magicmouse_setup_input(struct input_dev *input, struct hid_device *hd
...
@@ -399,6 +395,9 @@ static int magicmouse_setup_input(struct input_dev *input, struct hid_device *hd
__set_bit
(
BTN_TOOL_QUINTTAP
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_QUINTTAP
,
input
->
keybit
);
__set_bit
(
BTN_TOUCH
,
input
->
keybit
);
__set_bit
(
BTN_TOUCH
,
input
->
keybit
);
__set_bit
(
INPUT_PROP_POINTER
,
input
->
propbit
);
__set_bit
(
INPUT_PROP_POINTER
,
input
->
propbit
);
__set_bit
(
INPUT_PROP_BUTTONPAD
,
input
->
propbit
);
}
__set_bit
(
EV_ABS
,
input
->
evbit
);
__set_bit
(
EV_ABS
,
input
->
evbit
);
...
...
drivers/hid/usbhid/hid-quirks.c
View file @
900a88ef
...
@@ -85,6 +85,7 @@ static const struct hid_blacklist {
...
@@ -85,6 +85,7 @@ static const struct hid_blacklist {
{
USB_VENDOR_ID_CORSAIR
,
USB_DEVICE_ID_CORSAIR_K65RGB_RAPIDFIRE
,
HID_QUIRK_NO_INIT_REPORTS
|
HID_QUIRK_ALWAYS_POLL
},
{
USB_VENDOR_ID_CORSAIR
,
USB_DEVICE_ID_CORSAIR_K65RGB_RAPIDFIRE
,
HID_QUIRK_NO_INIT_REPORTS
|
HID_QUIRK_ALWAYS_POLL
},
{
USB_VENDOR_ID_CORSAIR
,
USB_DEVICE_ID_CORSAIR_SCIMITAR_PRO_RGB
,
HID_QUIRK_NO_INIT_REPORTS
|
HID_QUIRK_ALWAYS_POLL
},
{
USB_VENDOR_ID_CORSAIR
,
USB_DEVICE_ID_CORSAIR_SCIMITAR_PRO_RGB
,
HID_QUIRK_NO_INIT_REPORTS
|
HID_QUIRK_ALWAYS_POLL
},
{
USB_VENDOR_ID_CREATIVELABS
,
USB_DEVICE_ID_CREATIVE_SB_OMNI_SURROUND_51
,
HID_QUIRK_NOGET
},
{
USB_VENDOR_ID_CREATIVELABS
,
USB_DEVICE_ID_CREATIVE_SB_OMNI_SURROUND_51
,
HID_QUIRK_NOGET
},
{
USB_VENDOR_ID_DELL
,
USB_DEVICE_ID_DELL_PIXART_USB_OPTICAL_MOUSE
,
HID_QUIRK_ALWAYS_POLL
},
{
USB_VENDOR_ID_DMI
,
USB_DEVICE_ID_DMI_ENC
,
HID_QUIRK_NOGET
},
{
USB_VENDOR_ID_DMI
,
USB_DEVICE_ID_DMI_ENC
,
HID_QUIRK_NOGET
},
{
USB_VENDOR_ID_DRAGONRISE
,
USB_DEVICE_ID_DRAGONRISE_WIIU
,
HID_QUIRK_MULTI_INPUT
},
{
USB_VENDOR_ID_DRAGONRISE
,
USB_DEVICE_ID_DRAGONRISE_WIIU
,
HID_QUIRK_MULTI_INPUT
},
{
USB_VENDOR_ID_DRAGONRISE
,
USB_DEVICE_ID_DRAGONRISE_PS3
,
HID_QUIRK_MULTI_INPUT
},
{
USB_VENDOR_ID_DRAGONRISE
,
USB_DEVICE_ID_DRAGONRISE_PS3
,
HID_QUIRK_MULTI_INPUT
},
...
...
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