Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
d083e906
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看板
提交
d083e906
编写于
5月 29, 2005
作者:
D
Dmitry Torokhov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Input: whitespace fixes in drivers/input/keyboard
Signed-off-by:
N
Dmitry Torokhov
<
dtor@mail.ru
>
上级
968ac842
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
22 deletion
+22
-22
drivers/input/keyboard/atkbd.c
drivers/input/keyboard/atkbd.c
+3
-3
drivers/input/keyboard/lkkbd.c
drivers/input/keyboard/lkkbd.c
+4
-4
drivers/input/keyboard/locomokbd.c
drivers/input/keyboard/locomokbd.c
+14
-14
drivers/input/keyboard/maple_keyb.c
drivers/input/keyboard/maple_keyb.c
+1
-1
未找到文件。
drivers/input/keyboard/atkbd.c
浏览文件 @
d083e906
...
...
@@ -227,7 +227,7 @@ static ssize_t atkbd_do_set_##_name(struct device *d, const char *b, size_t s) \
{ \
return atkbd_attr_set_helper(d, b, s, atkbd_set_##_name); \
} \
static struct device_attribute atkbd_attr_##_name =
\
static struct device_attribute atkbd_attr_##_name = \
__ATTR(_name, S_IWUSR | S_IRUGO, atkbd_do_show_##_name, atkbd_do_set_##_name);
ATKBD_DEFINE_ATTR
(
extra
);
...
...
@@ -388,7 +388,7 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data,
value
=
atkbd
->
release
?
0
:
(
1
+
(
!
atkbd
->
softrepeat
&&
test_bit
(
atkbd
->
keycode
[
code
],
atkbd
->
dev
.
key
)));
switch
(
value
)
{
/* Workaround Toshiba laptop multiple keypress */
switch
(
value
)
{
/* Workaround Toshiba laptop multiple keypress */
case
0
:
atkbd
->
last
=
0
;
break
;
...
...
@@ -894,7 +894,7 @@ static int atkbd_reconnect(struct serio *serio)
if
(
atkbd
->
write
)
{
param
[
0
]
=
(
test_bit
(
LED_SCROLLL
,
atkbd
->
dev
.
led
)
?
1
:
0
)
|
(
test_bit
(
LED_NUML
,
atkbd
->
dev
.
led
)
?
2
:
0
)
|
(
test_bit
(
LED_CAPSL
,
atkbd
->
dev
.
led
)
?
4
:
0
);
|
(
test_bit
(
LED_CAPSL
,
atkbd
->
dev
.
led
)
?
4
:
0
);
if
(
atkbd_probe
(
atkbd
))
return
-
1
;
...
...
drivers/input/keyboard/lkkbd.c
浏览文件 @
d083e906
...
...
@@ -15,10 +15,10 @@
* information given below, I will _not_ be liable!
*
* RJ10 pinout: To DE9: Or DB25:
*
1 - RxD <----> Pin 3 (TxD) <-> Pin 2 (TxD)
*
2 - GND <----> Pin 5 (GND) <-> Pin 7 (GND)
*
4 - TxD <----> Pin 2 (RxD) <-> Pin 3 (RxD)
*
3 - +12V (from HDD drive connector), DON'T connect to DE9 or DB25!!!
* 1 - RxD <----> Pin 3 (TxD) <-> Pin 2 (TxD)
* 2 - GND <----> Pin 5 (GND) <-> Pin 7 (GND)
* 4 - TxD <----> Pin 2 (RxD) <-> Pin 3 (RxD)
* 3 - +12V (from HDD drive connector), DON'T connect to DE9 or DB25!!!
*
* Pin numbers for DE9 and DB25 are noted on the plug (quite small:). For
* RJ10, it's like this:
...
...
drivers/input/keyboard/locomokbd.c
浏览文件 @
d083e906
...
...
@@ -42,7 +42,7 @@ MODULE_AUTHOR("John Lenz <lenz@cs.wisc.edu>");
MODULE_DESCRIPTION
(
"LoCoMo keyboard driver"
);
MODULE_LICENSE
(
"GPL"
);
#define LOCOMOKBD_NUMKEYS
128
#define LOCOMOKBD_NUMKEYS 128
#define KEY_ACTIVITY KEY_F16
#define KEY_CONTACT KEY_F18
...
...
@@ -61,7 +61,7 @@ static unsigned char locomokbd_keycode[LOCOMOKBD_NUMKEYS] = {
KEY_G
,
KEY_F
,
KEY_X
,
KEY_S
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 90 - 99 */
0
,
0
,
KEY_DOT
,
0
,
KEY_COMMA
,
KEY_N
,
KEY_B
,
KEY_C
,
KEY_Z
,
KEY_A
,
/* 100 - 109 */
KEY_LEFTSHIFT
,
KEY_TAB
,
KEY_LEFTCTRL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 110 - 119 */
KEY_M
,
KEY_SPACE
,
KEY_V
,
KEY_APOSTROPHE
,
KEY_SLASH
,
0
,
0
,
0
/* 120 - 128 */
KEY_M
,
KEY_SPACE
,
KEY_V
,
KEY_APOSTROPHE
,
KEY_SLASH
,
0
,
0
,
0
/* 120 - 128 */
};
#define KB_ROWS 16
...
...
@@ -82,7 +82,7 @@ struct locomokbd {
struct
locomo_dev
*
ldev
;
unsigned
long
base
;
spinlock_t
lock
;
struct
timer_list
timer
;
};
...
...
@@ -95,7 +95,7 @@ static inline void locomokbd_charge_all(unsigned long membase)
static
inline
void
locomokbd_activate_all
(
unsigned
long
membase
)
{
unsigned
long
r
;
locomo_writel
(
0
,
membase
+
LOCOMO_KSC
);
r
=
locomo_readl
(
membase
+
LOCOMO_KIC
);
r
&=
0xFEFF
;
...
...
@@ -127,7 +127,7 @@ static inline void locomokbd_reset_col(unsigned long membase, int col)
*/
/* Scan the hardware keyboard and push any changes up through the input layer */
static
void
locomokbd_scankeyboard
(
struct
locomokbd
*
locomokbd
,
struct
pt_regs
*
regs
)
static
void
locomokbd_scankeyboard
(
struct
locomokbd
*
locomokbd
,
struct
pt_regs
*
regs
)
{
unsigned
int
row
,
col
,
rowd
,
scancode
;
unsigned
long
flags
;
...
...
@@ -138,7 +138,7 @@ static void locomokbd_scankeyboard(struct locomokbd *locomokbd, struct pt_regs *
if
(
regs
)
input_regs
(
&
locomokbd
->
input
,
regs
);
locomokbd_charge_all
(
membase
);
num_pressed
=
0
;
...
...
@@ -146,9 +146,9 @@ static void locomokbd_scankeyboard(struct locomokbd *locomokbd, struct pt_regs *
locomokbd_activate_col
(
membase
,
col
);
udelay
(
KB_DELAY
);
rowd
=
~
locomo_readl
(
membase
+
LOCOMO_KIB
);
for
(
row
=
0
;
row
<
KB_ROWS
;
row
++
)
{
for
(
row
=
0
;
row
<
KB_ROWS
;
row
++
)
{
scancode
=
SCANCODE
(
col
,
row
);
if
(
rowd
&
KB_ROWMASK
(
row
))
{
num_pressed
+=
1
;
...
...
@@ -170,7 +170,7 @@ static void locomokbd_scankeyboard(struct locomokbd *locomokbd, struct pt_regs *
spin_unlock_irqrestore
(
&
locomokbd
->
lock
,
flags
);
}
/*
/*
* LoCoMo keyboard interrupt handler.
*/
static
irqreturn_t
locomokbd_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
...
...
@@ -205,8 +205,8 @@ static int locomokbd_probe(struct locomo_dev *dev)
memset
(
locomokbd
,
0
,
sizeof
(
struct
locomokbd
));
/* try and claim memory region */
if
(
!
request_mem_region
((
unsigned
long
)
dev
->
mapbase
,
dev
->
length
,
if
(
!
request_mem_region
((
unsigned
long
)
dev
->
mapbase
,
dev
->
length
,
LOCOMO_DRIVER_NAME
(
dev
)))
{
ret
=
-
EBUSY
;
printk
(
KERN_ERR
"locomokbd: Can't acquire access to io memory for keyboard
\n
"
);
...
...
@@ -225,7 +225,7 @@ static int locomokbd_probe(struct locomo_dev *dev)
locomokbd
->
timer
.
data
=
(
unsigned
long
)
locomokbd
;
locomokbd
->
input
.
evbit
[
0
]
=
BIT
(
EV_KEY
)
|
BIT
(
EV_REP
);
init_input_dev
(
&
locomokbd
->
input
);
locomokbd
->
input
.
keycode
=
locomokbd
->
keycode
;
locomokbd
->
input
.
keycodesize
=
sizeof
(
unsigned
char
);
...
...
@@ -271,11 +271,11 @@ static int locomokbd_probe(struct locomo_dev *dev)
static
int
locomokbd_remove
(
struct
locomo_dev
*
dev
)
{
struct
locomokbd
*
locomokbd
=
locomo_get_drvdata
(
dev
);
free_irq
(
dev
->
irq
[
0
],
locomokbd
);
del_timer_sync
(
&
locomokbd
->
timer
);
input_unregister_device
(
&
locomokbd
->
input
);
locomo_set_drvdata
(
dev
,
NULL
);
...
...
drivers/input/keyboard/maple_keyb.c
浏览文件 @
d083e906
/*
* $Id: maple_keyb.c,v 1.4 2004/03/22 01:18:15 lethal Exp $
*
SEGA Dreamcast keyboard driver
* SEGA Dreamcast keyboard driver
* Based on drivers/usb/usbkbd.c
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录