diff options
author | Bob Moore <robert.moore@intel.com> | 2008-06-10 01:42:13 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2008-07-16 17:27:03 -0400 |
commit | 67a119f990063f5662574f6d6414fe9bc5ece86a (patch) | |
tree | 96be8ffbbe56a0a2a85dba14b8c81f153ac218f2 /drivers/acpi/namespace | |
parent | 11f2a61ab418305167f9a3f3a31a50449222f64b (diff) |
ACPICA: Eliminate acpi_native_uint type v2
No longer needed; replaced mostly with u32, but also acpi_size
where a type that changes 32/64 bit on 32/64-bit platforms is
required.
v2: Fix a cast of a 32-bit int to a pointer in ACPI to avoid a compiler warning.
from David Howells
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers/acpi/namespace')
-rw-r--r-- | drivers/acpi/namespace/nsdump.c | 2 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsload.c | 3 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsparse.c | 15 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsutils.c | 26 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsxfeval.c | 2 |
5 files changed, 22 insertions, 26 deletions
diff --git a/drivers/acpi/namespace/nsdump.c b/drivers/acpi/namespace/nsdump.c index 5445751b8a3e..904f9510c0e2 100644 --- a/drivers/acpi/namespace/nsdump.c +++ b/drivers/acpi/namespace/nsdump.c | |||
@@ -73,7 +73,7 @@ acpi_ns_dump_one_device(acpi_handle obj_handle, | |||
73 | 73 | ||
74 | void acpi_ns_print_pathname(u32 num_segments, char *pathname) | 74 | void acpi_ns_print_pathname(u32 num_segments, char *pathname) |
75 | { | 75 | { |
76 | acpi_native_uint i; | 76 | u32 i; |
77 | 77 | ||
78 | ACPI_FUNCTION_NAME(ns_print_pathname); | 78 | ACPI_FUNCTION_NAME(ns_print_pathname); |
79 | 79 | ||
diff --git a/drivers/acpi/namespace/nsload.c b/drivers/acpi/namespace/nsload.c index 2c92f6cf5ce1..a4a412b7c029 100644 --- a/drivers/acpi/namespace/nsload.c +++ b/drivers/acpi/namespace/nsload.c | |||
@@ -71,8 +71,7 @@ static acpi_status acpi_ns_delete_subtree(acpi_handle start_handle); | |||
71 | ******************************************************************************/ | 71 | ******************************************************************************/ |
72 | 72 | ||
73 | acpi_status | 73 | acpi_status |
74 | acpi_ns_load_table(acpi_native_uint table_index, | 74 | acpi_ns_load_table(u32 table_index, struct acpi_namespace_node *node) |
75 | struct acpi_namespace_node *node) | ||
76 | { | 75 | { |
77 | acpi_status status; | 76 | acpi_status status; |
78 | 77 | ||
diff --git a/drivers/acpi/namespace/nsparse.c b/drivers/acpi/namespace/nsparse.c index 46a79b0103b6..a82271a9dbb3 100644 --- a/drivers/acpi/namespace/nsparse.c +++ b/drivers/acpi/namespace/nsparse.c | |||
@@ -63,13 +63,13 @@ ACPI_MODULE_NAME("nsparse") | |||
63 | * | 63 | * |
64 | ******************************************************************************/ | 64 | ******************************************************************************/ |
65 | acpi_status | 65 | acpi_status |
66 | acpi_ns_one_complete_parse(acpi_native_uint pass_number, | 66 | acpi_ns_one_complete_parse(u32 pass_number, |
67 | acpi_native_uint table_index, | 67 | u32 table_index, |
68 | struct acpi_namespace_node * start_node) | 68 | struct acpi_namespace_node *start_node) |
69 | { | 69 | { |
70 | union acpi_parse_object *parse_root; | 70 | union acpi_parse_object *parse_root; |
71 | acpi_status status; | 71 | acpi_status status; |
72 | acpi_native_uint aml_length; | 72 | u32 aml_length; |
73 | u8 *aml_start; | 73 | u8 *aml_start; |
74 | struct acpi_walk_state *walk_state; | 74 | struct acpi_walk_state *walk_state; |
75 | struct acpi_table_header *table; | 75 | struct acpi_table_header *table; |
@@ -112,8 +112,8 @@ acpi_ns_one_complete_parse(acpi_native_uint pass_number, | |||
112 | aml_start = (u8 *) table + sizeof(struct acpi_table_header); | 112 | aml_start = (u8 *) table + sizeof(struct acpi_table_header); |
113 | aml_length = table->length - sizeof(struct acpi_table_header); | 113 | aml_length = table->length - sizeof(struct acpi_table_header); |
114 | status = acpi_ds_init_aml_walk(walk_state, parse_root, NULL, | 114 | status = acpi_ds_init_aml_walk(walk_state, parse_root, NULL, |
115 | aml_start, (u32) aml_length, | 115 | aml_start, aml_length, NULL, |
116 | NULL, (u8) pass_number); | 116 | (u8) pass_number); |
117 | } | 117 | } |
118 | 118 | ||
119 | if (ACPI_FAILURE(status)) { | 119 | if (ACPI_FAILURE(status)) { |
@@ -158,8 +158,7 @@ acpi_ns_one_complete_parse(acpi_native_uint pass_number, | |||
158 | ******************************************************************************/ | 158 | ******************************************************************************/ |
159 | 159 | ||
160 | acpi_status | 160 | acpi_status |
161 | acpi_ns_parse_table(acpi_native_uint table_index, | 161 | acpi_ns_parse_table(u32 table_index, struct acpi_namespace_node *start_node) |
162 | struct acpi_namespace_node *start_node) | ||
163 | { | 162 | { |
164 | acpi_status status; | 163 | acpi_status status; |
165 | 164 | ||
diff --git a/drivers/acpi/namespace/nsutils.c b/drivers/acpi/namespace/nsutils.c index 64c039843ed2..5b5619c54594 100644 --- a/drivers/acpi/namespace/nsutils.c +++ b/drivers/acpi/namespace/nsutils.c | |||
@@ -365,7 +365,7 @@ acpi_status acpi_ns_build_internal_name(struct acpi_namestring_info *info) | |||
365 | char *internal_name = info->internal_name; | 365 | char *internal_name = info->internal_name; |
366 | char *external_name = info->next_external_char; | 366 | char *external_name = info->next_external_char; |
367 | char *result = NULL; | 367 | char *result = NULL; |
368 | acpi_native_uint i; | 368 | u32 i; |
369 | 369 | ||
370 | ACPI_FUNCTION_TRACE(ns_build_internal_name); | 370 | ACPI_FUNCTION_TRACE(ns_build_internal_name); |
371 | 371 | ||
@@ -400,12 +400,11 @@ acpi_status acpi_ns_build_internal_name(struct acpi_namestring_info *info) | |||
400 | result = &internal_name[i]; | 400 | result = &internal_name[i]; |
401 | } else if (num_segments == 2) { | 401 | } else if (num_segments == 2) { |
402 | internal_name[i] = AML_DUAL_NAME_PREFIX; | 402 | internal_name[i] = AML_DUAL_NAME_PREFIX; |
403 | result = &internal_name[(acpi_native_uint) (i + 1)]; | 403 | result = &internal_name[(acpi_size) i + 1]; |
404 | } else { | 404 | } else { |
405 | internal_name[i] = AML_MULTI_NAME_PREFIX_OP; | 405 | internal_name[i] = AML_MULTI_NAME_PREFIX_OP; |
406 | internal_name[(acpi_native_uint) (i + 1)] = | 406 | internal_name[(acpi_size) i + 1] = (char)num_segments; |
407 | (char)num_segments; | 407 | result = &internal_name[(acpi_size) i + 2]; |
408 | result = &internal_name[(acpi_native_uint) (i + 2)]; | ||
409 | } | 408 | } |
410 | } | 409 | } |
411 | 410 | ||
@@ -531,12 +530,12 @@ acpi_ns_externalize_name(u32 internal_name_length, | |||
531 | char *internal_name, | 530 | char *internal_name, |
532 | u32 * converted_name_length, char **converted_name) | 531 | u32 * converted_name_length, char **converted_name) |
533 | { | 532 | { |
534 | acpi_native_uint names_index = 0; | 533 | u32 names_index = 0; |
535 | acpi_native_uint num_segments = 0; | 534 | u32 num_segments = 0; |
536 | acpi_native_uint required_length; | 535 | u32 required_length; |
537 | acpi_native_uint prefix_length = 0; | 536 | u32 prefix_length = 0; |
538 | acpi_native_uint i = 0; | 537 | u32 i = 0; |
539 | acpi_native_uint j = 0; | 538 | u32 j = 0; |
540 | 539 | ||
541 | ACPI_FUNCTION_TRACE(ns_externalize_name); | 540 | ACPI_FUNCTION_TRACE(ns_externalize_name); |
542 | 541 | ||
@@ -582,9 +581,8 @@ acpi_ns_externalize_name(u32 internal_name_length, | |||
582 | /* <count> 4-byte names */ | 581 | /* <count> 4-byte names */ |
583 | 582 | ||
584 | names_index = prefix_length + 2; | 583 | names_index = prefix_length + 2; |
585 | num_segments = (acpi_native_uint) (u8) | 584 | num_segments = (u8) |
586 | internal_name[(acpi_native_uint) | 585 | internal_name[(acpi_size) prefix_length + 1]; |
587 | (prefix_length + 1)]; | ||
588 | break; | 586 | break; |
589 | 587 | ||
590 | case AML_DUAL_NAME_PREFIX: | 588 | case AML_DUAL_NAME_PREFIX: |
diff --git a/drivers/acpi/namespace/nsxfeval.c b/drivers/acpi/namespace/nsxfeval.c index b4e135eab7c7..38be5865d95d 100644 --- a/drivers/acpi/namespace/nsxfeval.c +++ b/drivers/acpi/namespace/nsxfeval.c | |||
@@ -441,7 +441,7 @@ acpi_ns_get_device_callback(acpi_handle obj_handle, | |||
441 | u32 flags; | 441 | u32 flags; |
442 | struct acpica_device_id hid; | 442 | struct acpica_device_id hid; |
443 | struct acpi_compatible_id_list *cid; | 443 | struct acpi_compatible_id_list *cid; |
444 | acpi_native_uint i; | 444 | u32 i; |
445 | int found; | 445 | int found; |
446 | 446 | ||
447 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); | 447 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); |