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

ACPICA: Cleanup table handler naming conflicts.

This is a cosmetic patch only. Comparison of the resulting binary showed
only line number differences.

This patch does not affect the generation of the Linux binary.
This patch decreases 44 lines of 20121114 divergence.diff.

There are naming conflicts between Linux and ACPICA on table handlers. This
patch cleans up this conflicts to reduce the source code diff between Linux
and ACPICA.

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
b43e1065 42f8fb75

+20 -15
+1 -1
drivers/acpi/acpica/acglobal.h
··· 252 252 ACPI_EXTERN struct acpi_global_notify_handler acpi_gbl_global_notify[2]; 253 253 ACPI_EXTERN acpi_exception_handler acpi_gbl_exception_handler; 254 254 ACPI_EXTERN acpi_init_handler acpi_gbl_init_handler; 255 - ACPI_EXTERN acpi_tbl_handler acpi_gbl_table_handler; 255 + ACPI_EXTERN acpi_table_handler acpi_gbl_table_handler; 256 256 ACPI_EXTERN void *acpi_gbl_table_handler_context; 257 257 ACPI_EXTERN struct acpi_walk_state *acpi_gbl_breakpoint_walk; 258 258 ACPI_EXTERN acpi_interface_handler acpi_gbl_interface_handler;
+2 -2
drivers/acpi/acpica/tbxface.c
··· 436 436 * 437 437 ******************************************************************************/ 438 438 acpi_status 439 - acpi_install_table_handler(acpi_tbl_handler handler, void *context) 439 + acpi_install_table_handler(acpi_table_handler handler, void *context) 440 440 { 441 441 acpi_status status; 442 442 ··· 482 482 * DESCRIPTION: Remove table event handler 483 483 * 484 484 ******************************************************************************/ 485 - acpi_status acpi_remove_table_handler(acpi_tbl_handler handler) 485 + acpi_status acpi_remove_table_handler(acpi_table_handler handler) 486 486 { 487 487 acpi_status status; 488 488
+1 -1
drivers/acpi/numa.c
··· 273 273 274 274 static int __init 275 275 acpi_table_parse_srat(enum acpi_srat_type id, 276 - acpi_table_entry_handler handler, unsigned int max_entries) 276 + acpi_tbl_entry_handler handler, unsigned int max_entries) 277 277 { 278 278 return acpi_table_parse_entries(ACPI_SIG_SRAT, 279 279 sizeof(struct acpi_table_srat), id,
+3 -3
drivers/acpi/tables.c
··· 204 204 acpi_table_parse_entries(char *id, 205 205 unsigned long table_size, 206 206 int entry_id, 207 - acpi_table_entry_handler handler, 207 + acpi_tbl_entry_handler handler, 208 208 unsigned int max_entries) 209 209 { 210 210 struct acpi_table_header *table_header = NULL; ··· 269 269 270 270 int __init 271 271 acpi_table_parse_madt(enum acpi_madt_type id, 272 - acpi_table_entry_handler handler, unsigned int max_entries) 272 + acpi_tbl_entry_handler handler, unsigned int max_entries) 273 273 { 274 274 return acpi_table_parse_entries(ACPI_SIG_MADT, 275 275 sizeof(struct acpi_table_madt), id, ··· 285 285 * Scan the ACPI System Descriptor Table (STD) for a table matching @id, 286 286 * run @handler on it. Return 0 if table found, return on if not. 287 287 */ 288 - int __init acpi_table_parse(char *id, acpi_table_handler handler) 288 + int __init acpi_table_parse(char *id, acpi_tbl_table_handler handler) 289 289 { 290 290 struct acpi_table_header *table = NULL; 291 291 acpi_size tbl_size;
+2 -2
include/acpi/acpixf.h
··· 197 197 acpi_get_table_by_index(u32 table_index, struct acpi_table_header **out_table); 198 198 199 199 acpi_status 200 - acpi_install_table_handler(acpi_tbl_handler handler, void *context); 200 + acpi_install_table_handler(acpi_table_handler handler, void *context); 201 201 202 - acpi_status acpi_remove_table_handler(acpi_tbl_handler handler); 202 + acpi_status acpi_remove_table_handler(acpi_table_handler handler); 203 203 204 204 /* 205 205 * Namespace and name interfaces
+1 -1
include/acpi/actypes.h
··· 984 984 /* Table Event handler (Load, load_table, etc.) and types */ 985 985 986 986 typedef 987 - acpi_status(*acpi_tbl_handler) (u32 event, void *table, void *context); 987 + acpi_status(*acpi_table_handler) (u32 event, void *table, void *context); 988 988 989 989 #define ACPI_TABLE_LOAD 0x0 990 990 #define ACPI_TABLE_UNLOAD 0x1
+10 -5
include/linux/acpi.h
··· 74 74 75 75 /* Table Handlers */ 76 76 77 - typedef int (*acpi_table_handler) (struct acpi_table_header *table); 77 + typedef int (*acpi_tbl_table_handler)(struct acpi_table_header *table); 78 78 79 - typedef int (*acpi_table_entry_handler) (struct acpi_subtable_header *header, const unsigned long end); 79 + typedef int (*acpi_tbl_entry_handler)(struct acpi_subtable_header *header, 80 + const unsigned long end); 80 81 81 82 #ifdef CONFIG_ACPI_INITRD_TABLE_OVERRIDE 82 83 void acpi_initrd_override(void *data, size_t size); ··· 96 95 int acpi_numa_init (void); 97 96 98 97 int acpi_table_init (void); 99 - int acpi_table_parse (char *id, acpi_table_handler handler); 98 + int acpi_table_parse(char *id, acpi_tbl_table_handler handler); 100 99 int __init acpi_table_parse_entries(char *id, unsigned long table_size, 101 - int entry_id, acpi_table_entry_handler handler, unsigned int max_entries); 102 - int acpi_table_parse_madt (enum acpi_madt_type id, acpi_table_entry_handler handler, unsigned int max_entries); 100 + int entry_id, 101 + acpi_tbl_entry_handler handler, 102 + unsigned int max_entries); 103 + int acpi_table_parse_madt(enum acpi_madt_type id, 104 + acpi_tbl_entry_handler handler, 105 + unsigned int max_entries); 103 106 int acpi_parse_mcfg (struct acpi_table_header *header); 104 107 void acpi_table_print_madt_entry (struct acpi_subtable_header *madt); 105 108