Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
0ca1804f
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看板
提交
0ca1804f
编写于
4月 12, 2007
作者:
D
Dmitry Torokhov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Input: drivers/input/mice - don't access dev->private directly
Signed-off-by:
N
Dmitry Torokhov
<
dtor@mail.ru
>
上级
3abccf36
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
0 addition
and
5 deletion
+0
-5
drivers/input/mouse/hil_ptr.c
drivers/input/mouse/hil_ptr.c
+0
-2
drivers/input/mouse/psmouse-base.c
drivers/input/mouse/psmouse-base.c
+0
-1
drivers/input/mouse/sermouse.c
drivers/input/mouse/sermouse.c
+0
-1
drivers/input/mouse/vsxxxaa.c
drivers/input/mouse/vsxxxaa.c
+0
-1
未找到文件。
drivers/input/mouse/hil_ptr.c
浏览文件 @
0ca1804f
...
@@ -259,8 +259,6 @@ static int hil_ptr_connect(struct serio *serio, struct serio_driver *driver)
...
@@ -259,8 +259,6 @@ static int hil_ptr_connect(struct serio *serio, struct serio_driver *driver)
if
(
!
ptr
->
dev
)
if
(
!
ptr
->
dev
)
goto
bail0
;
goto
bail0
;
ptr
->
dev
->
private
=
ptr
;
if
(
serio_open
(
serio
,
driver
))
if
(
serio_open
(
serio
,
driver
))
goto
bail1
;
goto
bail1
;
...
...
drivers/input/mouse/psmouse-base.c
浏览文件 @
0ca1804f
...
@@ -1083,7 +1083,6 @@ static int psmouse_switch_protocol(struct psmouse *psmouse, const struct psmouse
...
@@ -1083,7 +1083,6 @@ static int psmouse_switch_protocol(struct psmouse *psmouse, const struct psmouse
{
{
struct
input_dev
*
input_dev
=
psmouse
->
dev
;
struct
input_dev
*
input_dev
=
psmouse
->
dev
;
input_dev
->
private
=
psmouse
;
input_dev
->
cdev
.
dev
=
&
psmouse
->
ps2dev
.
serio
->
dev
;
input_dev
->
cdev
.
dev
=
&
psmouse
->
ps2dev
.
serio
->
dev
;
input_dev
->
evbit
[
0
]
=
BIT
(
EV_KEY
)
|
BIT
(
EV_REL
);
input_dev
->
evbit
[
0
]
=
BIT
(
EV_KEY
)
|
BIT
(
EV_REL
);
...
...
drivers/input/mouse/sermouse.c
浏览文件 @
0ca1804f
...
@@ -271,7 +271,6 @@ static int sermouse_connect(struct serio *serio, struct serio_driver *drv)
...
@@ -271,7 +271,6 @@ static int sermouse_connect(struct serio *serio, struct serio_driver *drv)
input_dev
->
evbit
[
0
]
=
BIT
(
EV_KEY
)
|
BIT
(
EV_REL
);
input_dev
->
evbit
[
0
]
=
BIT
(
EV_KEY
)
|
BIT
(
EV_REL
);
input_dev
->
keybit
[
LONG
(
BTN_MOUSE
)]
=
BIT
(
BTN_LEFT
)
|
BIT
(
BTN_RIGHT
);
input_dev
->
keybit
[
LONG
(
BTN_MOUSE
)]
=
BIT
(
BTN_LEFT
)
|
BIT
(
BTN_RIGHT
);
input_dev
->
relbit
[
0
]
=
BIT
(
REL_X
)
|
BIT
(
REL_Y
);
input_dev
->
relbit
[
0
]
=
BIT
(
REL_X
)
|
BIT
(
REL_Y
);
input_dev
->
private
=
sermouse
;
if
(
c
&
0x01
)
set_bit
(
BTN_MIDDLE
,
input_dev
->
keybit
);
if
(
c
&
0x01
)
set_bit
(
BTN_MIDDLE
,
input_dev
->
keybit
);
if
(
c
&
0x02
)
set_bit
(
BTN_SIDE
,
input_dev
->
keybit
);
if
(
c
&
0x02
)
set_bit
(
BTN_SIDE
,
input_dev
->
keybit
);
...
...
drivers/input/mouse/vsxxxaa.c
浏览文件 @
0ca1804f
...
@@ -509,7 +509,6 @@ vsxxxaa_connect (struct serio *serio, struct serio_driver *drv)
...
@@ -509,7 +509,6 @@ vsxxxaa_connect (struct serio *serio, struct serio_driver *drv)
input_dev
->
phys
=
mouse
->
phys
;
input_dev
->
phys
=
mouse
->
phys
;
input_dev
->
id
.
bustype
=
BUS_RS232
;
input_dev
->
id
.
bustype
=
BUS_RS232
;
input_dev
->
cdev
.
dev
=
&
serio
->
dev
;
input_dev
->
cdev
.
dev
=
&
serio
->
dev
;
input_dev
->
private
=
mouse
;
set_bit
(
EV_KEY
,
input_dev
->
evbit
);
/* We have buttons */
set_bit
(
EV_KEY
,
input_dev
->
evbit
);
/* We have buttons */
set_bit
(
EV_REL
,
input_dev
->
evbit
);
set_bit
(
EV_REL
,
input_dev
->
evbit
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录