Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
3136baf8
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看板
提交
3136baf8
编写于
10月 17, 2010
作者:
D
Dmitry Torokhov
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-linus' into next
上级
1d02ad43
ca047fed
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
34 addition
and
17 deletion
+34
-17
drivers/input/joydev.c
drivers/input/joydev.c
+3
-0
drivers/input/misc/uinput.c
drivers/input/misc/uinput.c
+7
-0
drivers/input/mouse/bcm5974.c
drivers/input/mouse/bcm5974.c
+8
-4
drivers/input/serio/i8042.c
drivers/input/serio/i8042.c
+1
-1
drivers/input/tablet/wacom_sys.c
drivers/input/tablet/wacom_sys.c
+12
-11
drivers/input/tablet/wacom_wac.c
drivers/input/tablet/wacom_wac.c
+3
-1
未找到文件。
drivers/input/joydev.c
浏览文件 @
3136baf8
...
...
@@ -483,6 +483,9 @@ static int joydev_handle_JSIOCSAXMAP(struct joydev *joydev,
memcpy
(
joydev
->
abspam
,
abspam
,
len
);
for
(
i
=
0
;
i
<
joydev
->
nabs
;
i
++
)
joydev
->
absmap
[
joydev
->
abspam
[
i
]]
=
i
;
out:
kfree
(
abspam
);
return
retval
;
...
...
drivers/input/misc/uinput.c
浏览文件 @
3136baf8
...
...
@@ -404,6 +404,13 @@ static int uinput_setup_device(struct uinput_device *udev, const char __user *bu
retval
=
uinput_validate_absbits
(
dev
);
if
(
retval
<
0
)
goto
exit
;
if
(
test_bit
(
ABS_MT_SLOT
,
dev
->
absbit
))
{
int
nslot
=
input_abs_get_max
(
dev
,
ABS_MT_SLOT
)
+
1
;
input_mt_create_slots
(
dev
,
nslot
);
input_set_events_per_packet
(
dev
,
6
*
nslot
);
}
else
if
(
test_bit
(
ABS_MT_POSITION_X
,
dev
->
absbit
))
{
input_set_events_per_packet
(
dev
,
60
);
}
}
udev
->
state
=
UIST_SETUP_COMPLETE
;
...
...
drivers/input/mouse/bcm5974.c
浏览文件 @
3136baf8
...
...
@@ -337,10 +337,14 @@ static void report_finger_data(struct input_dev *input,
const
struct
bcm5974_config
*
cfg
,
const
struct
tp_finger
*
f
)
{
input_report_abs
(
input
,
ABS_MT_TOUCH_MAJOR
,
raw2int
(
f
->
force_major
));
input_report_abs
(
input
,
ABS_MT_TOUCH_MINOR
,
raw2int
(
f
->
force_minor
));
input_report_abs
(
input
,
ABS_MT_WIDTH_MAJOR
,
raw2int
(
f
->
size_major
));
input_report_abs
(
input
,
ABS_MT_WIDTH_MINOR
,
raw2int
(
f
->
size_minor
));
input_report_abs
(
input
,
ABS_MT_TOUCH_MAJOR
,
raw2int
(
f
->
force_major
)
<<
1
);
input_report_abs
(
input
,
ABS_MT_TOUCH_MINOR
,
raw2int
(
f
->
force_minor
)
<<
1
);
input_report_abs
(
input
,
ABS_MT_WIDTH_MAJOR
,
raw2int
(
f
->
size_major
)
<<
1
);
input_report_abs
(
input
,
ABS_MT_WIDTH_MINOR
,
raw2int
(
f
->
size_minor
)
<<
1
);
input_report_abs
(
input
,
ABS_MT_ORIENTATION
,
MAX_FINGER_ORIENTATION
-
raw2int
(
f
->
orientation
));
input_report_abs
(
input
,
ABS_MT_POSITION_X
,
raw2int
(
f
->
abs_x
));
...
...
drivers/input/serio/i8042.c
浏览文件 @
3136baf8
...
...
@@ -1485,8 +1485,8 @@ static int __init i8042_init(void)
static
void
__exit
i8042_exit
(
void
)
{
platform_driver_unregister
(
&
i8042_driver
);
platform_device_unregister
(
i8042_platform_device
);
platform_driver_unregister
(
&
i8042_driver
);
i8042_platform_exit
();
panic_blink
=
NULL
;
...
...
drivers/input/tablet/wacom_sys.c
浏览文件 @
3136baf8
...
...
@@ -103,27 +103,26 @@ static void wacom_sys_irq(struct urb *urb)
static
int
wacom_open
(
struct
input_dev
*
dev
)
{
struct
wacom
*
wacom
=
input_get_drvdata
(
dev
);
int
retval
=
0
;
mutex_lock
(
&
wacom
->
lock
);
wacom
->
irq
->
dev
=
wacom
->
usbdev
;
if
(
usb_autopm_get_interface
(
wacom
->
intf
)
<
0
)
{
mutex_unlock
(
&
wacom
->
lock
);
if
(
usb_autopm_get_interface
(
wacom
->
intf
)
<
0
)
return
-
EIO
;
}
mutex_lock
(
&
wacom
->
lock
);
if
(
usb_submit_urb
(
wacom
->
irq
,
GFP_KERNEL
))
{
usb_autopm_put_interface
(
wacom
->
intf
);
mutex_unlock
(
&
wacom
->
lock
);
return
-
EIO
;
retval
=
-
EIO
;
goto
out
;
}
wacom
->
open
=
true
;
wacom
->
intf
->
needs_remote_wakeup
=
1
;
out:
mutex_unlock
(
&
wacom
->
lock
);
return
0
;
if
(
retval
)
usb_autopm_put_interface
(
wacom
->
intf
);
return
retval
;
}
static
void
wacom_close
(
struct
input_dev
*
dev
)
...
...
@@ -135,6 +134,8 @@ static void wacom_close(struct input_dev *dev)
wacom
->
open
=
false
;
wacom
->
intf
->
needs_remote_wakeup
=
0
;
mutex_unlock
(
&
wacom
->
lock
);
usb_autopm_put_interface
(
wacom
->
intf
);
}
static
int
wacom_parse_hid
(
struct
usb_interface
*
intf
,
struct
hid_descriptor
*
hid_desc
,
...
...
drivers/input/tablet/wacom_wac.c
浏览文件 @
3136baf8
...
...
@@ -442,8 +442,10 @@ static void wacom_intuos_general(struct wacom_wac *wacom)
/* general pen packet */
if
((
data
[
1
]
&
0xb8
)
==
0xa0
)
{
t
=
(
data
[
6
]
<<
2
)
|
((
data
[
7
]
>>
6
)
&
3
);
if
(
features
->
type
>=
INTUOS4S
&&
features
->
type
<=
INTUOS4L
)
if
((
features
->
type
>=
INTUOS4S
&&
features
->
type
<=
INTUOS4L
)
||
features
->
type
==
WACOM_21UX2
)
{
t
=
(
t
<<
1
)
|
(
data
[
1
]
&
1
);
}
input_report_abs
(
input
,
ABS_PRESSURE
,
t
);
input_report_abs
(
input
,
ABS_TILT_X
,
((
data
[
7
]
<<
1
)
&
0x7e
)
|
(
data
[
8
]
>>
7
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录