diff options
author | Lv Zheng <lv.zheng@intel.com> | 2012-10-30 22:25:36 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-14 18:31:23 -0500 |
commit | 644ef74e6d187ca2e8a23ff41a513964de36f93e (patch) | |
tree | e9dff693037687f98ef7027f2f65f0f79fe5ac15 /drivers | |
parent | 78e25fef2751434f38c7f711ecbf8762f79f7318 (diff) |
ACPICA: Fix AcpiSrc caused divergences.
There are definitions that can been converted into new styles by
the recent AcpiSrc while they remain the old styles in the Linux.
This patch fixes those definitions that will be converted by the
AcpiSrc.
This patch will not affect the generated vmlinux binary.
This will decrease 97 lines of 20120913 divergence.diff.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/acpica/acglobal.h | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/aclocal.h | 4 | ||||
-rw-r--r-- | drivers/acpi/acpica/acobject.h | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/dswexec.c | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/evxface.c | 2 | ||||
-rw-r--r-- | drivers/acpi/sysfs.c | 4 |
6 files changed, 8 insertions, 8 deletions
diff --git a/drivers/acpi/acpica/acglobal.h b/drivers/acpi/acpica/acglobal.h index fe20e186ca10..35006d193d51 100644 --- a/drivers/acpi/acpica/acglobal.h +++ b/drivers/acpi/acpica/acglobal.h | |||
@@ -376,7 +376,7 @@ ACPI_EXTERN struct acpi_gpe_block_info | |||
376 | #if (!ACPI_REDUCED_HARDWARE) | 376 | #if (!ACPI_REDUCED_HARDWARE) |
377 | 377 | ||
378 | ACPI_EXTERN u8 acpi_gbl_all_gpes_initialized; | 378 | ACPI_EXTERN u8 acpi_gbl_all_gpes_initialized; |
379 | ACPI_EXTERN ACPI_GBL_EVENT_HANDLER acpi_gbl_global_event_handler; | 379 | ACPI_EXTERN acpi_gbl_event_handler acpi_gbl_global_event_handler; |
380 | ACPI_EXTERN void *acpi_gbl_global_event_handler_context; | 380 | ACPI_EXTERN void *acpi_gbl_global_event_handler_context; |
381 | 381 | ||
382 | #endif /* !ACPI_REDUCED_HARDWARE */ | 382 | #endif /* !ACPI_REDUCED_HARDWARE */ |
diff --git a/drivers/acpi/acpica/aclocal.h b/drivers/acpi/acpica/aclocal.h index b5a4651cf2b7..564f2abf5904 100644 --- a/drivers/acpi/acpica/aclocal.h +++ b/drivers/acpi/acpica/aclocal.h | |||
@@ -262,7 +262,7 @@ struct acpi_create_field_info { | |||
262 | }; | 262 | }; |
263 | 263 | ||
264 | typedef | 264 | typedef |
265 | acpi_status(*ACPI_INTERNAL_METHOD) (struct acpi_walk_state * walk_state); | 265 | acpi_status(*acpi_internal_method) (struct acpi_walk_state * walk_state); |
266 | 266 | ||
267 | /* | 267 | /* |
268 | * Bitmapped ACPI types. Used internally only | 268 | * Bitmapped ACPI types. Used internally only |
@@ -645,7 +645,7 @@ union acpi_generic_state { | |||
645 | * | 645 | * |
646 | ****************************************************************************/ | 646 | ****************************************************************************/ |
647 | 647 | ||
648 | typedef acpi_status(*ACPI_EXECUTE_OP) (struct acpi_walk_state * walk_state); | 648 | typedef acpi_status(*acpi_execute_op) (struct acpi_walk_state * walk_state); |
649 | 649 | ||
650 | /* Address Range info block */ | 650 | /* Address Range info block */ |
651 | 651 | ||
diff --git a/drivers/acpi/acpica/acobject.h b/drivers/acpi/acpica/acobject.h index 364a1303fb8f..ac4269fb1a37 100644 --- a/drivers/acpi/acpica/acobject.h +++ b/drivers/acpi/acpica/acobject.h | |||
@@ -179,7 +179,7 @@ struct acpi_object_method { | |||
179 | union acpi_operand_object *mutex; | 179 | union acpi_operand_object *mutex; |
180 | u8 *aml_start; | 180 | u8 *aml_start; |
181 | union { | 181 | union { |
182 | ACPI_INTERNAL_METHOD implementation; | 182 | acpi_internal_method implementation; |
183 | union acpi_operand_object *handler; | 183 | union acpi_operand_object *handler; |
184 | } dispatch; | 184 | } dispatch; |
185 | 185 | ||
diff --git a/drivers/acpi/acpica/dswexec.c b/drivers/acpi/acpica/dswexec.c index 642f3c053e87..fa44609aba33 100644 --- a/drivers/acpi/acpica/dswexec.c +++ b/drivers/acpi/acpica/dswexec.c | |||
@@ -57,7 +57,7 @@ ACPI_MODULE_NAME("dswexec") | |||
57 | /* | 57 | /* |
58 | * Dispatch table for opcode classes | 58 | * Dispatch table for opcode classes |
59 | */ | 59 | */ |
60 | static ACPI_EXECUTE_OP acpi_gbl_op_type_dispatch[] = { | 60 | static acpi_execute_op acpi_gbl_op_type_dispatch[] = { |
61 | acpi_ex_opcode_0A_0T_1R, | 61 | acpi_ex_opcode_0A_0T_1R, |
62 | acpi_ex_opcode_1A_0T_0R, | 62 | acpi_ex_opcode_1A_0T_0R, |
63 | acpi_ex_opcode_1A_0T_1R, | 63 | acpi_ex_opcode_1A_0T_1R, |
diff --git a/drivers/acpi/acpica/evxface.c b/drivers/acpi/acpica/evxface.c index 7587eb6c9584..ae668f32cf16 100644 --- a/drivers/acpi/acpica/evxface.c +++ b/drivers/acpi/acpica/evxface.c | |||
@@ -398,7 +398,7 @@ ACPI_EXPORT_SYMBOL(acpi_install_exception_handler) | |||
398 | * | 398 | * |
399 | ******************************************************************************/ | 399 | ******************************************************************************/ |
400 | acpi_status | 400 | acpi_status |
401 | acpi_install_global_event_handler(ACPI_GBL_EVENT_HANDLER handler, void *context) | 401 | acpi_install_global_event_handler(acpi_gbl_event_handler handler, void *context) |
402 | { | 402 | { |
403 | acpi_status status; | 403 | acpi_status status; |
404 | 404 | ||
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index 7c3f98ba4afe..ea61ca9129cd 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c | |||
@@ -476,7 +476,7 @@ static void fixed_event_count(u32 event_number) | |||
476 | return; | 476 | return; |
477 | } | 477 | } |
478 | 478 | ||
479 | static void acpi_gbl_event_handler(u32 event_type, acpi_handle device, | 479 | static void acpi_global_event_handler(u32 event_type, acpi_handle device, |
480 | u32 event_number, void *context) | 480 | u32 event_number, void *context) |
481 | { | 481 | { |
482 | if (event_type == ACPI_EVENT_TYPE_GPE) | 482 | if (event_type == ACPI_EVENT_TYPE_GPE) |
@@ -638,7 +638,7 @@ void acpi_irq_stats_init(void) | |||
638 | if (all_counters == NULL) | 638 | if (all_counters == NULL) |
639 | goto fail; | 639 | goto fail; |
640 | 640 | ||
641 | status = acpi_install_global_event_handler(acpi_gbl_event_handler, NULL); | 641 | status = acpi_install_global_event_handler(acpi_global_event_handler, NULL); |
642 | if (ACPI_FAILURE(status)) | 642 | if (ACPI_FAILURE(status)) |
643 | goto fail; | 643 | goto fail; |
644 | 644 | ||