Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
900a88ef
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
900a88ef
编写于
6月 20, 2017
作者:
J
Jiri Kosina
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-4.12/upstream-fixes' into for-linus
上级
0ca4cd7b
53145c2e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
8 deletion
+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
未找到文件。
drivers/hid/hid-ids.h
浏览文件 @
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
浏览文件 @
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,16 +388,16 @@ static int magicmouse_setup_input(struct input_dev *input, struct hid_device *hd
...
@@ -389,16 +388,16 @@ 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
(
BTN_TOOL_FINGER
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_DOUBLETAP
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_TRIPLETAP
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_QUADTAP
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_QUINTTAP
,
input
->
keybit
);
__set_bit
(
BTN_TOUCH
,
input
->
keybit
);
__set_bit
(
INPUT_PROP_POINTER
,
input
->
propbit
);
__set_bit
(
INPUT_PROP_BUTTONPAD
,
input
->
propbit
);
__set_bit
(
INPUT_PROP_BUTTONPAD
,
input
->
propbit
);
}
}
__set_bit
(
BTN_TOOL_FINGER
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_DOUBLETAP
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_TRIPLETAP
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_QUADTAP
,
input
->
keybit
);
__set_bit
(
BTN_TOOL_QUINTTAP
,
input
->
keybit
);
__set_bit
(
BTN_TOUCH
,
input
->
keybit
);
__set_bit
(
INPUT_PROP_POINTER
,
input
->
propbit
);
__set_bit
(
EV_ABS
,
input
->
evbit
);
__set_bit
(
EV_ABS
,
input
->
evbit
);
...
...
drivers/hid/usbhid/hid-quirks.c
浏览文件 @
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
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录