Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lv Zheng and committed by
Rafael J. Wysocki
644ef74e 78e25fef

+13 -13
+1 -1
drivers/acpi/acpica/acglobal.h
··· 376 376 #if (!ACPI_REDUCED_HARDWARE) 377 377 378 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 380 ACPI_EXTERN void *acpi_gbl_global_event_handler_context; 381 381 382 382 #endif /* !ACPI_REDUCED_HARDWARE */
+2 -2
drivers/acpi/acpica/aclocal.h
··· 262 262 }; 263 263 264 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 268 * Bitmapped ACPI types. Used internally only ··· 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 650 /* Address Range info block */ 651 651
+1 -1
drivers/acpi/acpica/acobject.h
··· 179 179 union acpi_operand_object *mutex; 180 180 u8 *aml_start; 181 181 union { 182 - ACPI_INTERNAL_METHOD implementation; 182 + acpi_internal_method implementation; 183 183 union acpi_operand_object *handler; 184 184 } dispatch; 185 185
+1 -1
drivers/acpi/acpica/dswexec.c
··· 57 57 /* 58 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 61 acpi_ex_opcode_0A_0T_1R, 62 62 acpi_ex_opcode_1A_0T_0R, 63 63 acpi_ex_opcode_1A_0T_1R,
+1 -1
drivers/acpi/acpica/evxface.c
··· 398 398 * 399 399 ******************************************************************************/ 400 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 403 acpi_status status; 404 404
+2 -2
drivers/acpi/sysfs.c
··· 476 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 480 u32 event_number, void *context) 481 481 { 482 482 if (event_type == ACPI_EVENT_TYPE_GPE) ··· 638 638 if (all_counters == NULL) 639 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 642 if (ACPI_FAILURE(status)) 643 643 goto fail; 644 644
+1 -1
include/acpi/acpixf.h
··· 274 274 275 275 ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 276 276 acpi_install_global_event_handler 277 - (ACPI_GBL_EVENT_HANDLER handler, void *context)) 277 + (acpi_gbl_event_handler handler, void *context)) 278 278 279 279 ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 280 280 acpi_install_fixed_event_handler(u32
+4 -4
include/acpi/actypes.h
··· 796 796 797 797 /* Sleep function dispatch */ 798 798 799 - typedef acpi_status(*ACPI_SLEEP_FUNCTION) (u8 sleep_state); 799 + typedef acpi_status(*acpi_sleep_function) (u8 sleep_state); 800 800 801 801 struct acpi_sleep_functions { 802 - ACPI_SLEEP_FUNCTION legacy_function; 803 - ACPI_SLEEP_FUNCTION extended_function; 802 + acpi_sleep_function legacy_function; 803 + acpi_sleep_function extended_function; 804 804 }; 805 805 806 806 /* ··· 931 931 * Various handlers and callback procedures 932 932 */ 933 933 typedef 934 - void (*ACPI_GBL_EVENT_HANDLER) (u32 event_type, 934 + void (*acpi_gbl_event_handler) (u32 event_type, 935 935 acpi_handle device, 936 936 u32 event_number, void *context); 937 937