Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
7f3745ad
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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,发现更多精彩内容 >>
提交
7f3745ad
编写于
4月 24, 2009
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'sony-laptop' into release
上级
771e5ce3
53005a0a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
7 deletion
+21
-7
drivers/acpi/ec.c
drivers/acpi/ec.c
+1
-0
drivers/platform/x86/sony-laptop.c
drivers/platform/x86/sony-laptop.c
+20
-7
未找到文件。
drivers/acpi/ec.c
浏览文件 @
7f3745ad
...
...
@@ -1065,6 +1065,7 @@ static int acpi_ec_resume(struct acpi_device *device)
struct
acpi_ec
*
ec
=
acpi_driver_data
(
device
);
/* Enable use of GPE back */
clear_bit
(
EC_FLAGS_NO_GPE
,
&
ec
->
flags
);
set_bit
(
EC_FLAGS_GPE_MODE
,
&
ec
->
flags
);
acpi_enable_gpe
(
NULL
,
ec
->
gpe
);
return
0
;
}
...
...
drivers/platform/x86/sony-laptop.c
浏览文件 @
7f3745ad
...
...
@@ -317,7 +317,8 @@ static void sony_laptop_report_input_event(u8 event)
struct
input_dev
*
key_dev
=
sony_laptop_input
.
key_dev
;
struct
sony_laptop_keypress
kp
=
{
NULL
};
if
(
event
==
SONYPI_EVENT_FNKEY_RELEASED
)
{
if
(
event
==
SONYPI_EVENT_FNKEY_RELEASED
||
event
==
SONYPI_EVENT_ANYBUTTON_RELEASED
)
{
/* Nothing, not all VAIOs generate this event */
return
;
}
...
...
@@ -905,7 +906,6 @@ static struct sony_nc_event sony_127_events[] = {
{
0x05
,
SONYPI_EVENT_ANYBUTTON_RELEASED
},
{
0x86
,
SONYPI_EVENT_PKEY_P5
},
{
0x06
,
SONYPI_EVENT_ANYBUTTON_RELEASED
},
{
0x06
,
SONYPI_EVENT_ANYBUTTON_RELEASED
},
{
0x87
,
SONYPI_EVENT_SETTINGKEY_PRESSED
},
{
0x07
,
SONYPI_EVENT_ANYBUTTON_RELEASED
},
{
0
,
0
},
...
...
@@ -1004,6 +1004,7 @@ static int sony_nc_function_setup(struct acpi_device *device)
sony_call_snc_handle
(
0x0100
,
0
,
&
result
);
sony_call_snc_handle
(
0x0101
,
0
,
&
result
);
sony_call_snc_handle
(
0x0102
,
0x100
,
&
result
);
sony_call_snc_handle
(
0x0127
,
0
,
&
result
);
return
0
;
}
...
...
@@ -1040,7 +1041,7 @@ static int sony_nc_resume(struct acpi_device *device)
/* set the last requested brightness level */
if
(
sony_backlight_device
&&
!
sony_backlight_update_status
(
sony_backlight_device
)
)
sony_backlight_update_status
(
sony_backlight_device
)
<
0
)
printk
(
KERN_WARNING
DRV_PFX
"unable to restore brightness level
\n
"
);
return
0
;
...
...
@@ -1102,8 +1103,11 @@ static int sony_nc_setup_wifi_rfkill(struct acpi_device *device)
err
=
rfkill_register
(
sony_wifi_rfkill
);
if
(
err
)
rfkill_free
(
sony_wifi_rfkill
);
else
else
{
sony_rfkill_devices
[
SONY_WIFI
]
=
sony_wifi_rfkill
;
sony_nc_rfkill_set
(
sony_wifi_rfkill
->
data
,
RFKILL_STATE_UNBLOCKED
);
}
return
err
;
}
...
...
@@ -1124,8 +1128,11 @@ static int sony_nc_setup_bluetooth_rfkill(struct acpi_device *device)
err
=
rfkill_register
(
sony_bluetooth_rfkill
);
if
(
err
)
rfkill_free
(
sony_bluetooth_rfkill
);
else
else
{
sony_rfkill_devices
[
SONY_BLUETOOTH
]
=
sony_bluetooth_rfkill
;
sony_nc_rfkill_set
(
sony_bluetooth_rfkill
->
data
,
RFKILL_STATE_UNBLOCKED
);
}
return
err
;
}
...
...
@@ -1145,8 +1152,11 @@ static int sony_nc_setup_wwan_rfkill(struct acpi_device *device)
err
=
rfkill_register
(
sony_wwan_rfkill
);
if
(
err
)
rfkill_free
(
sony_wwan_rfkill
);
else
else
{
sony_rfkill_devices
[
SONY_WWAN
]
=
sony_wwan_rfkill
;
sony_nc_rfkill_set
(
sony_wwan_rfkill
->
data
,
RFKILL_STATE_UNBLOCKED
);
}
return
err
;
}
...
...
@@ -1166,8 +1176,11 @@ static int sony_nc_setup_wimax_rfkill(struct acpi_device *device)
err
=
rfkill_register
(
sony_wimax_rfkill
);
if
(
err
)
rfkill_free
(
sony_wimax_rfkill
);
else
else
{
sony_rfkill_devices
[
SONY_WIMAX
]
=
sony_wimax_rfkill
;
sony_nc_rfkill_set
(
sony_wimax_rfkill
->
data
,
RFKILL_STATE_UNBLOCKED
);
}
return
err
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录