Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
5f50ef45
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,发现更多精彩内容 >>
提交
5f50ef45
编写于
10月 22, 2008
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'misc' into test
上级
530bc23b
e3deda9c
变更
30
隐藏空白更改
内联
并排
Showing
30 changed file
with
56 addition
and
46 deletion
+56
-46
Documentation/kernel-parameters.txt
Documentation/kernel-parameters.txt
+1
-1
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/acpi/boot.c
+3
-1
arch/x86/kernel/acpi/sleep.c
arch/x86/kernel/acpi/sleep.c
+2
-2
drivers/acpi/Kconfig
drivers/acpi/Kconfig
+2
-2
drivers/acpi/ac.c
drivers/acpi/ac.c
+1
-1
drivers/acpi/acpi_memhotplug.c
drivers/acpi/acpi_memhotplug.c
+1
-1
drivers/acpi/asus_acpi.c
drivers/acpi/asus_acpi.c
+3
-1
drivers/acpi/battery.c
drivers/acpi/battery.c
+1
-1
drivers/acpi/button.c
drivers/acpi/button.c
+1
-1
drivers/acpi/container.c
drivers/acpi/container.c
+1
-1
drivers/acpi/ec.c
drivers/acpi/ec.c
+2
-2
drivers/acpi/fan.c
drivers/acpi/fan.c
+1
-1
drivers/acpi/pci_link.c
drivers/acpi/pci_link.c
+1
-1
drivers/acpi/pci_root.c
drivers/acpi/pci_root.c
+1
-1
drivers/acpi/power.c
drivers/acpi/power.c
+2
-2
drivers/acpi/processor_core.c
drivers/acpi/processor_core.c
+1
-1
drivers/acpi/sbs.c
drivers/acpi/sbs.c
+1
-1
drivers/acpi/sbshc.c
drivers/acpi/sbshc.c
+2
-2
drivers/acpi/scan.c
drivers/acpi/scan.c
+2
-2
drivers/acpi/sleep/main.c
drivers/acpi/sleep/main.c
+3
-4
drivers/acpi/thermal.c
drivers/acpi/thermal.c
+6
-4
drivers/acpi/toshiba_acpi.c
drivers/acpi/toshiba_acpi.c
+1
-1
drivers/acpi/video.c
drivers/acpi/video.c
+3
-3
drivers/misc/asus-laptop.c
drivers/misc/asus-laptop.c
+3
-2
drivers/misc/eeepc-laptop.c
drivers/misc/eeepc-laptop.c
+1
-1
drivers/misc/fujitsu-laptop.c
drivers/misc/fujitsu-laptop.c
+2
-2
drivers/misc/intel_menlow.c
drivers/misc/intel_menlow.c
+1
-1
drivers/misc/sony-laptop.c
drivers/misc/sony-laptop.c
+1
-1
drivers/misc/thinkpad_acpi.c
drivers/misc/thinkpad_acpi.c
+1
-1
include/acpi/acpi_bus.h
include/acpi/acpi_bus.h
+5
-1
未找到文件。
Documentation/kernel-parameters.txt
浏览文件 @
5f50ef45
...
...
@@ -2173,7 +2173,7 @@ and is between 256 and 4096 characters. It is defined in the file
thermal.crt= [HW,ACPI]
-1: disable all critical trip points in all thermal zones
<degrees C>:
lower
all critical trip points
<degrees C>:
override
all critical trip points
thermal.nocrt= [HW,ACPI]
Set to disable actions on ACPI thermal zone
...
...
arch/x86/kernel/acpi/boot.c
浏览文件 @
5f50ef45
...
...
@@ -97,7 +97,6 @@ static u64 acpi_lapic_addr __initdata = APIC_DEFAULT_PHYS_BASE;
#warning ACPI uses CMPXCHG, i486 and later hardware
#endif
static
int
acpi_mcfg_64bit_base_addr
__initdata
=
FALSE
;
/* --------------------------------------------------------------------------
Boot-time Configuration
...
...
@@ -156,6 +155,9 @@ char *__init __acpi_map_table(unsigned long phys, unsigned long size)
}
#ifdef CONFIG_PCI_MMCONFIG
static
int
acpi_mcfg_64bit_base_addr
__initdata
=
FALSE
;
/* The physical address of the MMCONFIG aperture. Set from ACPI tables. */
struct
acpi_mcfg_allocation
*
pci_mmcfg_config
;
int
pci_mmcfg_config_num
;
...
...
arch/x86/kernel/acpi/sleep.c
浏览文件 @
5f50ef45
...
...
@@ -21,7 +21,7 @@ unsigned long acpi_realmode_flags;
static
unsigned
long
acpi_realmode
;
#if defined(CONFIG_SMP) && defined(CONFIG_64BIT)
static
char
temp_stack
[
10240
];
static
char
temp_stack
[
4096
];
#endif
/**
...
...
@@ -97,7 +97,7 @@ int acpi_save_state_mem(void)
#else
/* CONFIG_64BIT */
header
->
trampoline_segment
=
setup_trampoline
()
>>
4
;
#ifdef CONFIG_SMP
stack_start
.
sp
=
temp_stack
+
4096
;
stack_start
.
sp
=
temp_stack
+
sizeof
(
temp_stack
)
;
#endif
initial_code
=
(
unsigned
long
)
wakeup_long64
;
saved_magic
=
0x123456789abcdef0
;
...
...
drivers/acpi/Kconfig
浏览文件 @
5f50ef45
...
...
@@ -42,7 +42,7 @@ if ACPI
config ACPI_SLEEP
bool
depends on
PM_SLEEP
depends on
SUSPEND || HIBERNATION
default y
config ACPI_PROCFS
...
...
@@ -252,7 +252,7 @@ config ACPI_ASUS
config ACPI_TOSHIBA
tristate "Toshiba Laptop Extras"
depends on X86
depends on X86
&& INPUT
select BACKLIGHT_CLASS_DEVICE
---help---
This driver adds support for access to certain system settings
...
...
drivers/acpi/ac.c
浏览文件 @
5f50ef45
...
...
@@ -269,7 +269,7 @@ static int acpi_ac_add(struct acpi_device *device)
ac
->
device
=
device
;
strcpy
(
acpi_device_name
(
device
),
ACPI_AC_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_AC_CLASS
);
acpi_driver_data
(
device
)
=
ac
;
device
->
driver_data
=
ac
;
result
=
acpi_ac_get_state
(
ac
);
if
(
result
)
...
...
drivers/acpi/acpi_memhotplug.c
浏览文件 @
5f50ef45
...
...
@@ -403,7 +403,7 @@ static int acpi_memory_device_add(struct acpi_device *device)
mem_device
->
device
=
device
;
sprintf
(
acpi_device_name
(
device
),
"%s"
,
ACPI_MEMORY_DEVICE_NAME
);
sprintf
(
acpi_device_class
(
device
),
"%s"
,
ACPI_MEMORY_DEVICE_CLASS
);
acpi_driver_data
(
device
)
=
mem_device
;
device
->
driver_data
=
mem_device
;
/* Get the range from the _CRS */
result
=
acpi_memory_get_device_resources
(
mem_device
);
...
...
drivers/acpi/asus_acpi.c
浏览文件 @
5f50ef45
...
...
@@ -1244,6 +1244,8 @@ static int asus_hotk_get_info(void)
"default values
\n
"
,
string
);
printk
(
KERN_NOTICE
" send /proc/acpi/dsdt to the developers
\n
"
);
kfree
(
model
);
return
-
ENODEV
;
}
hotk
->
methods
=
&
model_conf
[
hotk
->
model
];
return
AE_OK
;
...
...
@@ -1321,7 +1323,7 @@ static int asus_hotk_add(struct acpi_device *device)
hotk
->
handle
=
device
->
handle
;
strcpy
(
acpi_device_name
(
device
),
ACPI_HOTK_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_HOTK_CLASS
);
acpi_driver_data
(
device
)
=
hotk
;
device
->
driver_data
=
hotk
;
hotk
->
device
=
device
;
result
=
asus_hotk_check
();
...
...
drivers/acpi/battery.c
浏览文件 @
5f50ef45
...
...
@@ -804,7 +804,7 @@ static int acpi_battery_add(struct acpi_device *device)
battery
->
device
=
device
;
strcpy
(
acpi_device_name
(
device
),
ACPI_BATTERY_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_BATTERY_CLASS
);
acpi_driver_data
(
device
)
=
battery
;
device
->
driver_data
=
battery
;
mutex_init
(
&
battery
->
lock
);
acpi_battery_update
(
battery
);
#ifdef CONFIG_ACPI_PROCFS_POWER
...
...
drivers/acpi/button.c
浏览文件 @
5f50ef45
...
...
@@ -384,7 +384,7 @@ static int acpi_button_add(struct acpi_device *device)
return
-
ENOMEM
;
button
->
device
=
device
;
acpi_driver_data
(
device
)
=
button
;
device
->
driver_data
=
button
;
button
->
input
=
input
=
input_allocate_device
();
if
(
!
input
)
{
...
...
drivers/acpi/container.c
浏览文件 @
5f50ef45
...
...
@@ -108,7 +108,7 @@ static int acpi_container_add(struct acpi_device *device)
container
->
handle
=
device
->
handle
;
strcpy
(
acpi_device_name
(
device
),
ACPI_CONTAINER_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_CONTAINER_CLASS
);
acpi_driver_data
(
device
)
=
container
;
device
->
driver_data
=
container
;
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Device <%s> bid <%s>
\n
"
,
acpi_device_name
(
device
),
acpi_device_bid
(
device
)));
...
...
drivers/acpi/ec.c
浏览文件 @
5f50ef45
...
...
@@ -799,7 +799,7 @@ static int acpi_ec_add(struct acpi_device *device)
if
(
!
first_ec
)
first_ec
=
ec
;
acpi_driver_data
(
device
)
=
ec
;
device
->
driver_data
=
ec
;
acpi_ec_add_fs
(
device
);
pr_info
(
PREFIX
"GPE = 0x%lx, I/O: command/status = 0x%lx, data = 0x%lx
\n
"
,
ec
->
gpe
,
ec
->
command_addr
,
ec
->
data_addr
);
...
...
@@ -824,7 +824,7 @@ static int acpi_ec_remove(struct acpi_device *device, int type)
}
mutex_unlock
(
&
ec
->
lock
);
acpi_ec_remove_fs
(
device
);
acpi_driver_data
(
device
)
=
NULL
;
device
->
driver_data
=
NULL
;
if
(
ec
==
first_ec
)
first_ec
=
NULL
;
kfree
(
ec
);
...
...
drivers/acpi/fan.c
浏览文件 @
5f50ef45
...
...
@@ -265,7 +265,7 @@ static int acpi_fan_add(struct acpi_device *device)
dev_info
(
&
device
->
dev
,
"registered as cooling_device%d
\n
"
,
cdev
->
id
);
acpi_driver_data
(
device
)
=
cdev
;
device
->
driver_data
=
cdev
;
result
=
sysfs_create_link
(
&
device
->
dev
.
kobj
,
&
cdev
->
device
.
kobj
,
"thermal_cooling"
);
...
...
drivers/acpi/pci_link.c
浏览文件 @
5f50ef45
...
...
@@ -737,7 +737,7 @@ static int acpi_pci_link_add(struct acpi_device *device)
link
->
device
=
device
;
strcpy
(
acpi_device_name
(
device
),
ACPI_PCI_LINK_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_PCI_LINK_CLASS
);
acpi_driver_data
(
device
)
=
link
;
device
->
driver_data
=
link
;
mutex_lock
(
&
acpi_link_lock
);
result
=
acpi_pci_link_get_possible
(
link
);
...
...
drivers/acpi/pci_root.c
浏览文件 @
5f50ef45
...
...
@@ -206,7 +206,7 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)
root
->
device
=
device
;
strcpy
(
acpi_device_name
(
device
),
ACPI_PCI_ROOT_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_PCI_ROOT_CLASS
);
acpi_driver_data
(
device
)
=
root
;
device
->
driver_data
=
root
;
device
->
ops
.
bind
=
acpi_pci_bind
;
...
...
drivers/acpi/power.c
浏览文件 @
5f50ef45
...
...
@@ -679,7 +679,7 @@ static int acpi_power_add(struct acpi_device *device)
strcpy
(
resource
->
name
,
device
->
pnp
.
bus_id
);
strcpy
(
acpi_device_name
(
device
),
ACPI_POWER_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_POWER_CLASS
);
acpi_driver_data
(
device
)
=
resource
;
device
->
driver_data
=
resource
;
/* Evalute the object to get the system level and resource order. */
status
=
acpi_evaluate_object
(
device
->
handle
,
NULL
,
NULL
,
&
buffer
);
...
...
@@ -755,7 +755,7 @@ static int acpi_power_resume(struct acpi_device *device)
if
(
!
device
||
!
acpi_driver_data
(
device
))
return
-
EINVAL
;
resource
=
(
struct
acpi_power_resource
*
)
acpi_driver_data
(
device
);
resource
=
acpi_driver_data
(
device
);
result
=
acpi_power_get_state
(
device
->
handle
,
&
state
);
if
(
result
)
...
...
drivers/acpi/processor_core.c
浏览文件 @
5f50ef45
...
...
@@ -818,7 +818,7 @@ static int acpi_processor_add(struct acpi_device *device)
pr
->
handle
=
device
->
handle
;
strcpy
(
acpi_device_name
(
device
),
ACPI_PROCESSOR_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_PROCESSOR_CLASS
);
acpi_driver_data
(
device
)
=
pr
;
device
->
driver_data
=
pr
;
return
0
;
}
...
...
drivers/acpi/sbs.c
浏览文件 @
5f50ef45
...
...
@@ -931,7 +931,7 @@ static int acpi_sbs_add(struct acpi_device *device)
sbs
->
device
=
device
;
strcpy
(
acpi_device_name
(
device
),
ACPI_SBS_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_SBS_CLASS
);
acpi_driver_data
(
device
)
=
sbs
;
device
->
driver_data
=
sbs
;
result
=
acpi_charger_add
(
sbs
);
if
(
result
)
...
...
drivers/acpi/sbshc.c
浏览文件 @
5f50ef45
...
...
@@ -282,7 +282,7 @@ static int acpi_smbus_hc_add(struct acpi_device *device)
hc
->
ec
=
acpi_driver_data
(
device
->
parent
);
hc
->
offset
=
(
val
>>
8
)
&
0xff
;
hc
->
query_bit
=
val
&
0xff
;
acpi_driver_data
(
device
)
=
hc
;
device
->
driver_data
=
hc
;
acpi_ec_add_query_handler
(
hc
->
ec
,
hc
->
query_bit
,
NULL
,
smbus_alarm
,
hc
);
printk
(
KERN_INFO
PREFIX
"SBS HC: EC = 0x%p, offset = 0x%0x, query_bit = 0x%0x
\n
"
,
...
...
@@ -303,7 +303,7 @@ static int acpi_smbus_hc_remove(struct acpi_device *device, int type)
hc
=
acpi_driver_data
(
device
);
acpi_ec_remove_query_handler
(
hc
->
ec
,
hc
->
query_bit
);
kfree
(
hc
);
acpi_driver_data
(
device
)
=
NULL
;
device
->
driver_data
=
NULL
;
return
0
;
}
...
...
drivers/acpi/scan.c
浏览文件 @
5f50ef45
...
...
@@ -391,7 +391,7 @@ static int acpi_device_remove(struct device * dev)
acpi_drv
->
ops
.
remove
(
acpi_dev
,
acpi_dev
->
removal_type
);
}
acpi_dev
->
driver
=
NULL
;
acpi_d
river_data
(
dev
)
=
NULL
;
acpi_d
ev
->
driver_data
=
NULL
;
put_device
(
dev
);
return
0
;
...
...
@@ -544,7 +544,7 @@ acpi_bus_driver_init(struct acpi_device *device, struct acpi_driver *driver)
result
=
driver
->
ops
.
add
(
device
);
if
(
result
)
{
device
->
driver
=
NULL
;
acpi_driver_data
(
device
)
=
NULL
;
device
->
driver_data
=
NULL
;
return
result
;
}
...
...
drivers/acpi/sleep/main.c
浏览文件 @
5f50ef45
...
...
@@ -23,6 +23,7 @@
#include "sleep.h"
u8
sleep_states
[
ACPI_S_STATE_COUNT
];
static
u32
acpi_target_sleep_state
=
ACPI_STATE_S0
;
static
int
acpi_sleep_prepare
(
u32
acpi_state
)
{
...
...
@@ -45,9 +46,7 @@ static int acpi_sleep_prepare(u32 acpi_state)
return
0
;
}
#ifdef CONFIG_PM_SLEEP
static
u32
acpi_target_sleep_state
=
ACPI_STATE_S0
;
#ifdef CONFIG_ACPI_SLEEP
/*
* ACPI 1.0 wants us to execute _PTS before suspending devices, so we allow the
* user to request that behavior by using the 'acpi_old_suspend_ordering'
...
...
@@ -132,7 +131,7 @@ static void acpi_pm_end(void)
*/
acpi_target_sleep_state
=
ACPI_STATE_S0
;
}
#endif
/* CONFIG_
PM
_SLEEP */
#endif
/* CONFIG_
ACPI
_SLEEP */
#ifdef CONFIG_SUSPEND
extern
void
do_suspend_lowlevel
(
void
);
...
...
drivers/acpi/thermal.c
浏览文件 @
5f50ef45
...
...
@@ -388,10 +388,12 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
}
else
if
(
crt
>
0
)
{
unsigned
long
crt_k
=
CELSIUS_TO_KELVIN
(
crt
);
/*
* Allow override
to lower
critical threshold
* Allow override critical threshold
*/
if
(
crt_k
<
tz
->
trips
.
critical
.
temperature
)
tz
->
trips
.
critical
.
temperature
=
crt_k
;
if
(
crt_k
>
tz
->
trips
.
critical
.
temperature
)
printk
(
KERN_WARNING
PREFIX
"Critical threshold %d C
\n
"
,
crt
);
tz
->
trips
.
critical
.
temperature
=
crt_k
;
}
}
}
...
...
@@ -1647,7 +1649,7 @@ static int acpi_thermal_add(struct acpi_device *device)
strcpy
(
tz
->
name
,
device
->
pnp
.
bus_id
);
strcpy
(
acpi_device_name
(
device
),
ACPI_THERMAL_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_THERMAL_CLASS
);
acpi_driver_data
(
device
)
=
tz
;
device
->
driver_data
=
tz
;
mutex_init
(
&
tz
->
lock
);
...
...
drivers/acpi/toshiba_acpi.c
浏览文件 @
5f50ef45
...
...
@@ -392,7 +392,7 @@ static unsigned long write_video(const char *buffer, unsigned long count)
hci_read1
(
HCI_VIDEO_OUT
,
&
video_out
,
&
hci_result
);
if
(
hci_result
==
HCI_SUCCESS
)
{
int
new_video_out
=
video_out
;
unsigned
int
new_video_out
=
video_out
;
if
(
lcd_out
!=
-
1
)
_set_bit
(
&
new_video_out
,
HCI_VIDEO_OUT_LCD
,
lcd_out
);
if
(
crt_out
!=
-
1
)
...
...
drivers/acpi/video.c
浏览文件 @
5f50ef45
...
...
@@ -1491,7 +1491,7 @@ acpi_video_bus_get_one_device(struct acpi_device *device,
strcpy
(
acpi_device_name
(
device
),
ACPI_VIDEO_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_VIDEO_CLASS
);
acpi_driver_data
(
device
)
=
data
;
device
->
driver_data
=
data
;
data
->
device_id
=
device_id
;
data
->
video
=
video
;
...
...
@@ -1982,7 +1982,7 @@ static int acpi_video_bus_add(struct acpi_device *device)
video
->
device
=
device
;
strcpy
(
acpi_device_name
(
device
),
ACPI_VIDEO_BUS_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_VIDEO_CLASS
);
acpi_driver_data
(
device
)
=
video
;
device
->
driver_data
=
video
;
acpi_video_bus_find_cap
(
video
);
error
=
acpi_video_bus_check
(
video
);
...
...
@@ -2058,7 +2058,7 @@ static int acpi_video_bus_add(struct acpi_device *device)
acpi_video_bus_remove_fs
(
device
);
err_free_video:
kfree
(
video
);
acpi_driver_data
(
device
)
=
NULL
;
device
->
driver_data
=
NULL
;
return
error
;
}
...
...
drivers/misc/asus-laptop.c
浏览文件 @
5f50ef45
...
...
@@ -139,6 +139,7 @@ ASUS_HANDLE(lcd_switch, "\\_SB.PCI0.SBRG.EC0._Q10", /* All new models */
"
\\
_SB.PCI0.PX40.ECD0._Q10"
,
/* L3C */
"
\\
_SB.PCI0.PX40.EC0.Q10"
,
/* M1A */
"
\\
_SB.PCI0.LPCB.EC0._Q10"
,
/* P30 */
"
\\
_SB.PCI0.LPCB.EC0._Q0E"
,
/* P30/P35 */
"
\\
_SB.PCI0.PX40.Q10"
,
/* S1x */
"
\\
Q10"
);
/* A2x, L2D, L3D, M2E */
...
...
@@ -350,7 +351,7 @@ static void write_status(acpi_handle handle, int out, int mask)
static void object##_led_set(struct led_classdev *led_cdev, \
enum led_brightness value) \
{ \
object##_led_wk =
value;
\
object##_led_wk =
(value > 0) ? 1 : 0;
\
queue_work(led_workqueue, &object##_led_work); \
} \
static void object##_led_update(struct work_struct *ignored) \
...
...
@@ -996,7 +997,7 @@ static int asus_hotk_add(struct acpi_device *device)
hotk
->
handle
=
device
->
handle
;
strcpy
(
acpi_device_name
(
device
),
ASUS_HOTK_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
ASUS_HOTK_CLASS
);
acpi_driver_data
(
device
)
=
hotk
;
device
->
driver_data
=
hotk
;
hotk
->
device
=
device
;
result
=
asus_hotk_check
();
...
...
drivers/misc/eeepc-laptop.c
浏览文件 @
5f50ef45
...
...
@@ -554,7 +554,7 @@ static int eeepc_hotk_add(struct acpi_device *device)
ehotk
->
handle
=
device
->
handle
;
strcpy
(
acpi_device_name
(
device
),
EEEPC_HOTK_DEVICE_NAME
);
strcpy
(
acpi_device_class
(
device
),
EEEPC_HOTK_CLASS
);
acpi_driver_data
(
device
)
=
ehotk
;
device
->
driver_data
=
ehotk
;
ehotk
->
device
=
device
;
result
=
eeepc_hotk_check
();
if
(
result
)
...
...
drivers/misc/fujitsu-laptop.c
浏览文件 @
5f50ef45
...
...
@@ -508,7 +508,7 @@ static int acpi_fujitsu_add(struct acpi_device *device)
fujitsu
->
acpi_handle
=
device
->
handle
;
sprintf
(
acpi_device_name
(
device
),
"%s"
,
ACPI_FUJITSU_DEVICE_NAME
);
sprintf
(
acpi_device_class
(
device
),
"%s"
,
ACPI_FUJITSU_CLASS
);
acpi_driver_data
(
device
)
=
fujitsu
;
device
->
driver_data
=
fujitsu
;
status
=
acpi_install_notify_handler
(
device
->
handle
,
ACPI_DEVICE_NOTIFY
,
...
...
@@ -718,7 +718,7 @@ static int acpi_fujitsu_hotkey_add(struct acpi_device *device)
sprintf
(
acpi_device_name
(
device
),
"%s"
,
ACPI_FUJITSU_HOTKEY_DEVICE_NAME
);
sprintf
(
acpi_device_class
(
device
),
"%s"
,
ACPI_FUJITSU_CLASS
);
acpi_driver_data
(
device
)
=
fujitsu_hotkey
;
device
->
driver_data
=
fujitsu_hotkey
;
status
=
acpi_install_notify_handler
(
device
->
handle
,
ACPI_DEVICE_NOTIFY
,
...
...
drivers/misc/intel_menlow.c
浏览文件 @
5f50ef45
...
...
@@ -175,7 +175,7 @@ static int intel_menlow_memory_add(struct acpi_device *device)
goto
end
;
}
acpi_driver_data
(
device
)
=
cdev
;
device
->
driver_data
=
cdev
;
result
=
sysfs_create_link
(
&
device
->
dev
.
kobj
,
&
cdev
->
device
.
kobj
,
"thermal_cooling"
);
if
(
result
)
...
...
drivers/misc/sony-laptop.c
浏览文件 @
5f50ef45
...
...
@@ -970,7 +970,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
))
printk
(
KERN_WARNING
DRV_PFX
"unable to restore brightness level"
);
printk
(
KERN_WARNING
DRV_PFX
"unable to restore brightness level
\n
"
);
/* re-initialize models with specific requirements */
dmi_check_system
(
sony_nc_ids
);
...
...
drivers/misc/thinkpad_acpi.c
浏览文件 @
5f50ef45
...
...
@@ -543,7 +543,7 @@ static int __init setup_acpi_notify(struct ibm_struct *ibm)
return
-
ENODEV
;
}
acpi_driver_data
(
ibm
->
acpi
->
device
)
=
ibm
;
ibm
->
acpi
->
device
->
driver_data
=
ibm
;
sprintf
(
acpi_device_class
(
ibm
->
acpi
->
device
),
"%s/%s"
,
TPACPI_ACPI_EVENT_PREFIX
,
ibm
->
name
);
...
...
include/acpi/acpi_bus.h
浏览文件 @
5f50ef45
...
...
@@ -300,7 +300,11 @@ struct acpi_device {
enum
acpi_bus_removal_type
removal_type
;
/* indicate for different removal type */
};
#define acpi_driver_data(d) ((d)->driver_data)
static
inline
void
*
acpi_driver_data
(
struct
acpi_device
*
d
)
{
return
d
->
driver_data
;
}
#define to_acpi_device(d) container_of(d, struct acpi_device, dev)
#define to_acpi_driver(d) container_of(d, struct acpi_driver, drv)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录