diff options
author | Bob Moore <robert.moore@intel.com> | 2012-07-11 21:40:10 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-07-17 00:05:51 -0400 |
commit | ba494beeaa69bc0fb01eb89464ad5d57d26e3901 (patch) | |
tree | 804996ccb531af38f91853bd9b8055b65cd2ac6b /drivers/acpi/acpica/utmisc.c | |
parent | 75e7386b104b27b1158bf7d13c69d5317f0033ca (diff) |
ACPICA: AcpiSrc: Fix some translation issues for Linux conversion
Fixes issues like this:
i_aSL -> iASL
00-7_f -> 00-7F
local_fADT -> local_FADT
execute_oSI -> execute_OSI
Also, in function headers, the parameters are now translated to
lower case (with underscores if necessary.)
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>
Diffstat (limited to 'drivers/acpi/acpica/utmisc.c')
-rw-r--r-- | drivers/acpi/acpica/utmisc.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/acpi/acpica/utmisc.c b/drivers/acpi/acpica/utmisc.c index e30c060b7bef..33c6cf7ff467 100644 --- a/drivers/acpi/acpica/utmisc.c +++ b/drivers/acpi/acpica/utmisc.c | |||
@@ -55,7 +55,7 @@ ACPI_MODULE_NAME("utmisc") | |||
55 | * | 55 | * |
56 | * FUNCTION: ut_convert_backslashes | 56 | * FUNCTION: ut_convert_backslashes |
57 | * | 57 | * |
58 | * PARAMETERS: Pathname - File pathname string to be converted | 58 | * PARAMETERS: pathname - File pathname string to be converted |
59 | * | 59 | * |
60 | * RETURN: Modifies the input Pathname | 60 | * RETURN: Modifies the input Pathname |
61 | * | 61 | * |
@@ -84,7 +84,7 @@ void ut_convert_backslashes(char *pathname) | |||
84 | * | 84 | * |
85 | * FUNCTION: acpi_ut_is_pci_root_bridge | 85 | * FUNCTION: acpi_ut_is_pci_root_bridge |
86 | * | 86 | * |
87 | * PARAMETERS: Id - The HID/CID in string format | 87 | * PARAMETERS: id - The HID/CID in string format |
88 | * | 88 | * |
89 | * RETURN: TRUE if the Id is a match for a PCI/PCI-Express Root Bridge | 89 | * RETURN: TRUE if the Id is a match for a PCI/PCI-Express Root Bridge |
90 | * | 90 | * |
@@ -112,7 +112,7 @@ u8 acpi_ut_is_pci_root_bridge(char *id) | |||
112 | * | 112 | * |
113 | * FUNCTION: acpi_ut_is_aml_table | 113 | * FUNCTION: acpi_ut_is_aml_table |
114 | * | 114 | * |
115 | * PARAMETERS: Table - An ACPI table | 115 | * PARAMETERS: table - An ACPI table |
116 | * | 116 | * |
117 | * RETURN: TRUE if table contains executable AML; FALSE otherwise | 117 | * RETURN: TRUE if table contains executable AML; FALSE otherwise |
118 | * | 118 | * |
@@ -246,7 +246,7 @@ acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id) | |||
246 | * | 246 | * |
247 | * FUNCTION: acpi_ut_release_owner_id | 247 | * FUNCTION: acpi_ut_release_owner_id |
248 | * | 248 | * |
249 | * PARAMETERS: owner_id_ptr - Pointer to a previously allocated owner_iD | 249 | * PARAMETERS: owner_id_ptr - Pointer to a previously allocated owner_ID |
250 | * | 250 | * |
251 | * RETURN: None. No error is returned because we are either exiting a | 251 | * RETURN: None. No error is returned because we are either exiting a |
252 | * control method or unloading a table. Either way, we would | 252 | * control method or unloading a table. Either way, we would |
@@ -269,7 +269,7 @@ void acpi_ut_release_owner_id(acpi_owner_id * owner_id_ptr) | |||
269 | 269 | ||
270 | *owner_id_ptr = 0; | 270 | *owner_id_ptr = 0; |
271 | 271 | ||
272 | /* Zero is not a valid owner_iD */ | 272 | /* Zero is not a valid owner_ID */ |
273 | 273 | ||
274 | if (owner_id == 0) { | 274 | if (owner_id == 0) { |
275 | ACPI_ERROR((AE_INFO, "Invalid OwnerId: 0x%2.2X", owner_id)); | 275 | ACPI_ERROR((AE_INFO, "Invalid OwnerId: 0x%2.2X", owner_id)); |
@@ -343,7 +343,7 @@ void acpi_ut_strupr(char *src_string) | |||
343 | * | 343 | * |
344 | * FUNCTION: acpi_ut_print_string | 344 | * FUNCTION: acpi_ut_print_string |
345 | * | 345 | * |
346 | * PARAMETERS: String - Null terminated ASCII string | 346 | * PARAMETERS: string - Null terminated ASCII string |
347 | * max_length - Maximum output length | 347 | * max_length - Maximum output length |
348 | * | 348 | * |
349 | * RETURN: None | 349 | * RETURN: None |
@@ -429,7 +429,7 @@ void acpi_ut_print_string(char *string, u8 max_length) | |||
429 | * | 429 | * |
430 | * FUNCTION: acpi_ut_dword_byte_swap | 430 | * FUNCTION: acpi_ut_dword_byte_swap |
431 | * | 431 | * |
432 | * PARAMETERS: Value - Value to be converted | 432 | * PARAMETERS: value - Value to be converted |
433 | * | 433 | * |
434 | * RETURN: u32 integer with bytes swapped | 434 | * RETURN: u32 integer with bytes swapped |
435 | * | 435 | * |
@@ -499,9 +499,9 @@ void acpi_ut_set_integer_width(u8 revision) | |||
499 | * | 499 | * |
500 | * FUNCTION: acpi_ut_display_init_pathname | 500 | * FUNCTION: acpi_ut_display_init_pathname |
501 | * | 501 | * |
502 | * PARAMETERS: Type - Object type of the node | 502 | * PARAMETERS: type - Object type of the node |
503 | * obj_handle - Handle whose pathname will be displayed | 503 | * obj_handle - Handle whose pathname will be displayed |
504 | * Path - Additional path string to be appended. | 504 | * path - Additional path string to be appended. |
505 | * (NULL if no extra path) | 505 | * (NULL if no extra path) |
506 | * | 506 | * |
507 | * RETURN: acpi_status | 507 | * RETURN: acpi_status |
@@ -566,8 +566,8 @@ acpi_ut_display_init_pathname(u8 type, | |||
566 | * | 566 | * |
567 | * FUNCTION: acpi_ut_valid_acpi_char | 567 | * FUNCTION: acpi_ut_valid_acpi_char |
568 | * | 568 | * |
569 | * PARAMETERS: Char - The character to be examined | 569 | * PARAMETERS: char - The character to be examined |
570 | * Position - Byte position (0-3) | 570 | * position - Byte position (0-3) |
571 | * | 571 | * |
572 | * RETURN: TRUE if the character is valid, FALSE otherwise | 572 | * RETURN: TRUE if the character is valid, FALSE otherwise |
573 | * | 573 | * |
@@ -602,7 +602,7 @@ u8 acpi_ut_valid_acpi_char(char character, u32 position) | |||
602 | * | 602 | * |
603 | * FUNCTION: acpi_ut_valid_acpi_name | 603 | * FUNCTION: acpi_ut_valid_acpi_name |
604 | * | 604 | * |
605 | * PARAMETERS: Name - The name to be examined | 605 | * PARAMETERS: name - The name to be examined |
606 | * | 606 | * |
607 | * RETURN: TRUE if the name is valid, FALSE otherwise | 607 | * RETURN: TRUE if the name is valid, FALSE otherwise |
608 | * | 608 | * |
@@ -633,7 +633,7 @@ u8 acpi_ut_valid_acpi_name(u32 name) | |||
633 | * | 633 | * |
634 | * FUNCTION: acpi_ut_repair_name | 634 | * FUNCTION: acpi_ut_repair_name |
635 | * | 635 | * |
636 | * PARAMETERS: Name - The ACPI name to be repaired | 636 | * PARAMETERS: name - The ACPI name to be repaired |
637 | * | 637 | * |
638 | * RETURN: Repaired version of the name | 638 | * RETURN: Repaired version of the name |
639 | * | 639 | * |
@@ -667,8 +667,8 @@ acpi_name acpi_ut_repair_name(char *name) | |||
667 | * | 667 | * |
668 | * FUNCTION: acpi_ut_strtoul64 | 668 | * FUNCTION: acpi_ut_strtoul64 |
669 | * | 669 | * |
670 | * PARAMETERS: String - Null terminated string | 670 | * PARAMETERS: string - Null terminated string |
671 | * Base - Radix of the string: 16 or ACPI_ANY_BASE; | 671 | * base - Radix of the string: 16 or ACPI_ANY_BASE; |
672 | * ACPI_ANY_BASE means 'in behalf of to_integer' | 672 | * ACPI_ANY_BASE means 'in behalf of to_integer' |
673 | * ret_integer - Where the converted integer is returned | 673 | * ret_integer - Where the converted integer is returned |
674 | * | 674 | * |
@@ -717,7 +717,7 @@ acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 * ret_integer) | |||
717 | 717 | ||
718 | if (to_integer_op) { | 718 | if (to_integer_op) { |
719 | /* | 719 | /* |
720 | * Base equal to ACPI_ANY_BASE means 'to_integer operation case'. | 720 | * Base equal to ACPI_ANY_BASE means 'ToInteger operation case'. |
721 | * We need to determine if it is decimal or hexadecimal. | 721 | * We need to determine if it is decimal or hexadecimal. |
722 | */ | 722 | */ |
723 | if ((*string == '0') && (ACPI_TOLOWER(*(string + 1)) == 'x')) { | 723 | if ((*string == '0') && (ACPI_TOLOWER(*(string + 1)) == 'x')) { |
@@ -840,8 +840,8 @@ acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 * ret_integer) | |||
840 | * | 840 | * |
841 | * FUNCTION: acpi_ut_create_update_state_and_push | 841 | * FUNCTION: acpi_ut_create_update_state_and_push |
842 | * | 842 | * |
843 | * PARAMETERS: Object - Object to be added to the new state | 843 | * PARAMETERS: object - Object to be added to the new state |
844 | * Action - Increment/Decrement | 844 | * action - Increment/Decrement |
845 | * state_list - List the state will be added to | 845 | * state_list - List the state will be added to |
846 | * | 846 | * |
847 | * RETURN: Status | 847 | * RETURN: Status |
@@ -881,7 +881,7 @@ acpi_ut_create_update_state_and_push(union acpi_operand_object *object, | |||
881 | * PARAMETERS: source_object - The package to walk | 881 | * PARAMETERS: source_object - The package to walk |
882 | * target_object - Target object (if package is being copied) | 882 | * target_object - Target object (if package is being copied) |
883 | * walk_callback - Called once for each package element | 883 | * walk_callback - Called once for each package element |
884 | * Context - Passed to the callback function | 884 | * context - Passed to the callback function |
885 | * | 885 | * |
886 | * RETURN: Status | 886 | * RETURN: Status |
887 | * | 887 | * |