aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/tables/tbxface.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/tables/tbxface.c')
-rw-r--r--drivers/acpi/tables/tbxface.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/acpi/tables/tbxface.c b/drivers/acpi/tables/tbxface.c
index 53c627e401bf..4e91f2984815 100644
--- a/drivers/acpi/tables/tbxface.c
+++ b/drivers/acpi/tables/tbxface.c
@@ -66,7 +66,7 @@ acpi_status acpi_load_tables(void)
66 struct acpi_pointer rsdp_address; 66 struct acpi_pointer rsdp_address;
67 acpi_status status; 67 acpi_status status;
68 68
69 ACPI_FUNCTION_TRACE("acpi_load_tables"); 69 ACPI_FUNCTION_TRACE(acpi_load_tables);
70 70
71 /* Get the RSDP */ 71 /* Get the RSDP */
72 72
@@ -145,7 +145,7 @@ acpi_status acpi_load_table(struct acpi_table_header *table_ptr)
145 struct acpi_table_desc table_info; 145 struct acpi_table_desc table_info;
146 struct acpi_pointer address; 146 struct acpi_pointer address;
147 147
148 ACPI_FUNCTION_TRACE("acpi_load_table"); 148 ACPI_FUNCTION_TRACE(acpi_load_table);
149 149
150 if (!table_ptr) { 150 if (!table_ptr) {
151 return_ACPI_STATUS(AE_BAD_PARAMETER); 151 return_ACPI_STATUS(AE_BAD_PARAMETER);
@@ -188,12 +188,12 @@ acpi_status acpi_load_table(struct acpi_table_header *table_ptr)
188 /* Convert the table to common format if necessary */ 188 /* Convert the table to common format if necessary */
189 189
190 switch (table_info.type) { 190 switch (table_info.type) {
191 case ACPI_TABLE_FADT: 191 case ACPI_TABLE_ID_FADT:
192 192
193 status = acpi_tb_convert_table_fadt(); 193 status = acpi_tb_convert_table_fadt();
194 break; 194 break;
195 195
196 case ACPI_TABLE_FACS: 196 case ACPI_TABLE_ID_FACS:
197 197
198 status = acpi_tb_build_common_facs(&table_info); 198 status = acpi_tb_build_common_facs(&table_info);
199 break; 199 break;
@@ -234,11 +234,11 @@ acpi_status acpi_unload_table(acpi_table_type table_type)
234{ 234{
235 struct acpi_table_desc *table_desc; 235 struct acpi_table_desc *table_desc;
236 236
237 ACPI_FUNCTION_TRACE("acpi_unload_table"); 237 ACPI_FUNCTION_TRACE(acpi_unload_table);
238 238
239 /* Parameter validation */ 239 /* Parameter validation */
240 240
241 if (table_type > ACPI_TABLE_MAX) { 241 if (table_type > ACPI_TABLE_ID_MAX) {
242 return_ACPI_STATUS(AE_BAD_PARAMETER); 242 return_ACPI_STATUS(AE_BAD_PARAMETER);
243 } 243 }
244 244
@@ -292,16 +292,16 @@ acpi_get_table_header(acpi_table_type table_type,
292 struct acpi_table_header *tbl_ptr; 292 struct acpi_table_header *tbl_ptr;
293 acpi_status status; 293 acpi_status status;
294 294
295 ACPI_FUNCTION_TRACE("acpi_get_table_header"); 295 ACPI_FUNCTION_TRACE(acpi_get_table_header);
296 296
297 if ((instance == 0) || 297 if ((instance == 0) ||
298 (table_type == ACPI_TABLE_RSDP) || (!out_table_header)) { 298 (table_type == ACPI_TABLE_ID_RSDP) || (!out_table_header)) {
299 return_ACPI_STATUS(AE_BAD_PARAMETER); 299 return_ACPI_STATUS(AE_BAD_PARAMETER);
300 } 300 }
301 301
302 /* Check the table type and instance */ 302 /* Check the table type and instance */
303 303
304 if ((table_type > ACPI_TABLE_MAX) || 304 if ((table_type > ACPI_TABLE_ID_MAX) ||
305 (ACPI_IS_SINGLE_TABLE(acpi_gbl_table_data[table_type].flags) && 305 (ACPI_IS_SINGLE_TABLE(acpi_gbl_table_data[table_type].flags) &&
306 instance > 1)) { 306 instance > 1)) {
307 return_ACPI_STATUS(AE_BAD_PARAMETER); 307 return_ACPI_STATUS(AE_BAD_PARAMETER);
@@ -361,7 +361,7 @@ acpi_get_table(acpi_table_type table_type,
361 acpi_status status; 361 acpi_status status;
362 acpi_size table_length; 362 acpi_size table_length;
363 363
364 ACPI_FUNCTION_TRACE("acpi_get_table"); 364 ACPI_FUNCTION_TRACE(acpi_get_table);
365 365
366 /* Parameter validation */ 366 /* Parameter validation */
367 367
@@ -376,7 +376,7 @@ acpi_get_table(acpi_table_type table_type,
376 376
377 /* Check the table type and instance */ 377 /* Check the table type and instance */
378 378
379 if ((table_type > ACPI_TABLE_MAX) || 379 if ((table_type > ACPI_TABLE_ID_MAX) ||
380 (ACPI_IS_SINGLE_TABLE(acpi_gbl_table_data[table_type].flags) && 380 (ACPI_IS_SINGLE_TABLE(acpi_gbl_table_data[table_type].flags) &&
381 instance > 1)) { 381 instance > 1)) {
382 return_ACPI_STATUS(AE_BAD_PARAMETER); 382 return_ACPI_STATUS(AE_BAD_PARAMETER);
@@ -399,7 +399,7 @@ acpi_get_table(acpi_table_type table_type,
399 399
400 /* Get the table length */ 400 /* Get the table length */
401 401
402 if (table_type == ACPI_TABLE_RSDP) { 402 if (table_type == ACPI_TABLE_ID_RSDP) {
403 403
404 /* RSD PTR is the only "table" without a header */ 404 /* RSD PTR is the only "table" without a header */
405 405