diff options
-rw-r--r-- | drivers/acpi/acpica/acglobal.h | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/tbxface.c | 4 | ||||
-rw-r--r-- | drivers/acpi/numa.c | 2 | ||||
-rw-r--r-- | drivers/acpi/tables.c | 6 | ||||
-rw-r--r-- | include/acpi/acpixf.h | 4 | ||||
-rw-r--r-- | include/acpi/actypes.h | 2 | ||||
-rw-r--r-- | include/linux/acpi.h | 15 |
7 files changed, 20 insertions, 15 deletions
diff --git a/drivers/acpi/acpica/acglobal.h b/drivers/acpi/acpica/acglobal.h index 864806e1ac54..585d364fb7e5 100644 --- a/drivers/acpi/acpica/acglobal.h +++ b/drivers/acpi/acpica/acglobal.h | |||
@@ -252,7 +252,7 @@ ACPI_EXTERN acpi_cache_t *acpi_gbl_operand_cache; | |||
252 | ACPI_EXTERN struct acpi_global_notify_handler acpi_gbl_global_notify[2]; | 252 | ACPI_EXTERN struct acpi_global_notify_handler acpi_gbl_global_notify[2]; |
253 | ACPI_EXTERN acpi_exception_handler acpi_gbl_exception_handler; | 253 | ACPI_EXTERN acpi_exception_handler acpi_gbl_exception_handler; |
254 | ACPI_EXTERN acpi_init_handler acpi_gbl_init_handler; | 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 | ACPI_EXTERN void *acpi_gbl_table_handler_context; | 256 | ACPI_EXTERN void *acpi_gbl_table_handler_context; |
257 | ACPI_EXTERN struct acpi_walk_state *acpi_gbl_breakpoint_walk; | 257 | ACPI_EXTERN struct acpi_walk_state *acpi_gbl_breakpoint_walk; |
258 | ACPI_EXTERN acpi_interface_handler acpi_gbl_interface_handler; | 258 | ACPI_EXTERN acpi_interface_handler acpi_gbl_interface_handler; |
diff --git a/drivers/acpi/acpica/tbxface.c b/drivers/acpi/acpica/tbxface.c index d102fe7f709b..2115f2242a29 100644 --- a/drivers/acpi/acpica/tbxface.c +++ b/drivers/acpi/acpica/tbxface.c | |||
@@ -436,7 +436,7 @@ ACPI_EXPORT_SYMBOL(acpi_get_table_by_index) | |||
436 | * | 436 | * |
437 | ******************************************************************************/ | 437 | ******************************************************************************/ |
438 | acpi_status | 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 | acpi_status status; | 441 | acpi_status status; |
442 | 442 | ||
@@ -482,7 +482,7 @@ ACPI_EXPORT_SYMBOL(acpi_install_table_handler) | |||
482 | * DESCRIPTION: Remove table event handler | 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 | acpi_status status; | 487 | acpi_status status; |
488 | 488 | ||
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index cb31298ca684..5ddbc65e0f6e 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c | |||
@@ -273,7 +273,7 @@ static int __init acpi_parse_srat(struct acpi_table_header *table) | |||
273 | 273 | ||
274 | static int __init | 274 | static int __init |
275 | acpi_table_parse_srat(enum acpi_srat_type id, | 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 | return acpi_table_parse_entries(ACPI_SIG_SRAT, | 278 | return acpi_table_parse_entries(ACPI_SIG_SRAT, |
279 | sizeof(struct acpi_table_srat), id, | 279 | sizeof(struct acpi_table_srat), id, |
diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index 2572d9715bda..d67a1fe07f0e 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c | |||
@@ -204,7 +204,7 @@ int __init | |||
204 | acpi_table_parse_entries(char *id, | 204 | acpi_table_parse_entries(char *id, |
205 | unsigned long table_size, | 205 | unsigned long table_size, |
206 | int entry_id, | 206 | int entry_id, |
207 | acpi_table_entry_handler handler, | 207 | acpi_tbl_entry_handler handler, |
208 | unsigned int max_entries) | 208 | unsigned int max_entries) |
209 | { | 209 | { |
210 | struct acpi_table_header *table_header = NULL; | 210 | struct acpi_table_header *table_header = NULL; |
@@ -269,7 +269,7 @@ err: | |||
269 | 269 | ||
270 | int __init | 270 | int __init |
271 | acpi_table_parse_madt(enum acpi_madt_type id, | 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 | return acpi_table_parse_entries(ACPI_SIG_MADT, | 274 | return acpi_table_parse_entries(ACPI_SIG_MADT, |
275 | sizeof(struct acpi_table_madt), id, | 275 | sizeof(struct acpi_table_madt), id, |
@@ -285,7 +285,7 @@ acpi_table_parse_madt(enum acpi_madt_type id, | |||
285 | * Scan the ACPI System Descriptor Table (STD) for a table matching @id, | 285 | * Scan the ACPI System Descriptor Table (STD) for a table matching @id, |
286 | * run @handler on it. Return 0 if table found, return on if not. | 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 | struct acpi_table_header *table = NULL; | 290 | struct acpi_table_header *table = NULL; |
291 | acpi_size tbl_size; | 291 | acpi_size tbl_size; |
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index b86364d48645..d8b2ea673fc6 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -197,9 +197,9 @@ acpi_status | |||
197 | acpi_get_table_by_index(u32 table_index, struct acpi_table_header **out_table); | 197 | acpi_get_table_by_index(u32 table_index, struct acpi_table_header **out_table); |
198 | 198 | ||
199 | acpi_status | 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 | * Namespace and name interfaces | 205 | * Namespace and name interfaces |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index cd89810a4387..3d4e09c60e2b 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -984,7 +984,7 @@ acpi_status(*acpi_exception_handler) (acpi_status aml_status, | |||
984 | /* Table Event handler (Load, load_table, etc.) and types */ | 984 | /* Table Event handler (Load, load_table, etc.) and types */ |
985 | 985 | ||
986 | typedef | 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 | #define ACPI_TABLE_LOAD 0x0 | 989 | #define ACPI_TABLE_LOAD 0x0 |
990 | #define ACPI_TABLE_UNLOAD 0x1 | 990 | #define ACPI_TABLE_UNLOAD 0x1 |
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 3994d7790b23..6b795bd36383 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -74,9 +74,10 @@ enum acpi_address_range_id { | |||
74 | 74 | ||
75 | /* Table Handlers */ | 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 | #ifdef CONFIG_ACPI_INITRD_TABLE_OVERRIDE | 82 | #ifdef CONFIG_ACPI_INITRD_TABLE_OVERRIDE |
82 | void acpi_initrd_override(void *data, size_t size); | 83 | void acpi_initrd_override(void *data, size_t size); |
@@ -95,10 +96,14 @@ int acpi_mps_check (void); | |||
95 | int acpi_numa_init (void); | 96 | int acpi_numa_init (void); |
96 | 97 | ||
97 | int acpi_table_init (void); | 98 | int acpi_table_init (void); |
98 | int acpi_table_parse (char *id, acpi_table_handler handler); | 99 | int acpi_table_parse(char *id, acpi_tbl_table_handler handler); |
99 | int __init acpi_table_parse_entries(char *id, unsigned long table_size, | 100 | int __init acpi_table_parse_entries(char *id, unsigned long table_size, |
100 | int entry_id, acpi_table_entry_handler handler, unsigned int max_entries); | 101 | int entry_id, |
101 | int acpi_table_parse_madt (enum acpi_madt_type id, acpi_table_entry_handler handler, unsigned int max_entries); | 102 | acpi_tbl_entry_handler handler, |
103 | unsigned int max_entries); | ||
104 | int acpi_table_parse_madt(enum acpi_madt_type id, | ||
105 | acpi_tbl_entry_handler handler, | ||
106 | unsigned int max_entries); | ||
102 | int acpi_parse_mcfg (struct acpi_table_header *header); | 107 | int acpi_parse_mcfg (struct acpi_table_header *header); |
103 | void acpi_table_print_madt_entry (struct acpi_subtable_header *madt); | 108 | void acpi_table_print_madt_entry (struct acpi_subtable_header *madt); |
104 | 109 | ||