Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a62f0d27
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
153
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a62f0d27
编写于
5月 19, 2010
作者:
D
Dmitry Torokhov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Input: psmouse - small formatting changes to better follow coding style
Signed-off-by:
N
Dmitry Torokhov
<
dtor@mail.ru
>
上级
83ba9ea8
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
100 addition
and
95 deletion
+100
-95
drivers/input/mouse/hgpk.c
drivers/input/mouse/hgpk.c
+2
-2
drivers/input/mouse/logips2pp.c
drivers/input/mouse/logips2pp.c
+51
-47
drivers/input/mouse/psmouse-base.c
drivers/input/mouse/psmouse-base.c
+36
-36
drivers/input/mouse/synaptics.c
drivers/input/mouse/synaptics.c
+11
-10
未找到文件。
drivers/input/mouse/hgpk.c
浏览文件 @
a62f0d27
...
...
@@ -40,8 +40,8 @@
#include "psmouse.h"
#include "hgpk.h"
static
int
tpdebug
;
module_param
(
tpdebug
,
int
,
0644
);
static
bool
tpdebug
;
module_param
(
tpdebug
,
bool
,
0644
);
MODULE_PARM_DESC
(
tpdebug
,
"enable debugging, dumping packets to KERN_DEBUG."
);
static
int
recalib_delta
=
100
;
...
...
drivers/input/mouse/logips2pp.c
浏览文件 @
a62f0d27
...
...
@@ -250,7 +250,6 @@ static const struct ps2pp_info *get_model_info(unsigned char model)
if
(
model
==
ps2pp_list
[
i
].
model
)
return
&
ps2pp_list
[
i
];
printk
(
KERN_WARNING
"logips2pp: Detected unknown logitech mouse model %d
\n
"
,
model
);
return
NULL
;
}
...
...
@@ -285,6 +284,7 @@ static void ps2pp_set_model_properties(struct psmouse *psmouse,
__set_bit
(
REL_HWHEEL
,
input_dev
->
relbit
);
switch
(
model_info
->
kind
)
{
case
PS2PP_KIND_WHEEL
:
psmouse
->
name
=
"Wheel Mouse"
;
break
;
...
...
@@ -343,7 +343,8 @@ int ps2pp_init(struct psmouse *psmouse, bool set_properties)
if
(
!
model
||
!
buttons
)
return
-
1
;
if
((
model_info
=
get_model_info
(
model
))
!=
NULL
)
{
model_info
=
get_model_info
(
model
);
if
(
model_info
)
{
/*
* Do Logitech PS2++ / PS2T++ magic init.
...
...
@@ -379,6 +380,9 @@ int ps2pp_init(struct psmouse *psmouse, bool set_properties)
use_ps2pp
=
true
;
}
}
}
else
{
printk
(
KERN_WARNING
"logips2pp: Detected unknown logitech mouse model %d
\n
"
,
model
);
}
if
(
set_properties
)
{
...
...
drivers/input/mouse/psmouse-base.c
浏览文件 @
a62f0d27
...
...
@@ -1245,7 +1245,7 @@ static int psmouse_switch_protocol(struct psmouse *psmouse,
psmouse
->
pktsize
=
3
;
if
(
proto
&&
(
proto
->
detect
||
proto
->
init
))
{
if
(
proto
->
detect
&&
proto
->
detect
(
psmouse
,
1
)
<
0
)
if
(
proto
->
detect
&&
proto
->
detect
(
psmouse
,
true
)
<
0
)
return
-
1
;
if
(
proto
->
init
&&
proto
->
init
(
psmouse
)
<
0
)
...
...
drivers/input/mouse/synaptics.c
浏览文件 @
a62f0d27
...
...
@@ -532,6 +532,7 @@ static int synaptics_validate_byte(unsigned char packet[], int idx, unsigned cha
return
0
;
switch
(
pkt_type
)
{
case
SYN_NEWABS
:
case
SYN_NEWABS_RELAXED
:
return
(
packet
[
idx
]
&
newabs_rel_mask
[
idx
])
==
newabs_rslt
[
idx
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录