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/rsmisc.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/rsmisc.c')
-rw-r--r-- | drivers/acpi/acpica/rsmisc.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/acpi/acpica/rsmisc.c b/drivers/acpi/acpica/rsmisc.c index 8073b371cc7c..c6f291c2bc83 100644 --- a/drivers/acpi/acpica/rsmisc.c +++ b/drivers/acpi/acpica/rsmisc.c | |||
@@ -57,9 +57,9 @@ ACPI_MODULE_NAME("rsmisc") | |||
57 | * | 57 | * |
58 | * FUNCTION: acpi_rs_convert_aml_to_resource | 58 | * FUNCTION: acpi_rs_convert_aml_to_resource |
59 | * | 59 | * |
60 | * PARAMETERS: Resource - Pointer to the resource descriptor | 60 | * PARAMETERS: resource - Pointer to the resource descriptor |
61 | * Aml - Where the AML descriptor is returned | 61 | * aml - Where the AML descriptor is returned |
62 | * Info - Pointer to appropriate conversion table | 62 | * info - Pointer to appropriate conversion table |
63 | * | 63 | * |
64 | * RETURN: Status | 64 | * RETURN: Status |
65 | * | 65 | * |
@@ -406,7 +406,7 @@ acpi_rs_convert_aml_to_resource(struct acpi_resource *resource, | |||
406 | 406 | ||
407 | case ACPI_RSC_EXIT_NE: | 407 | case ACPI_RSC_EXIT_NE: |
408 | /* | 408 | /* |
409 | * Control - Exit conversion if not equal | 409 | * control - Exit conversion if not equal |
410 | */ | 410 | */ |
411 | switch (info->resource_offset) { | 411 | switch (info->resource_offset) { |
412 | case ACPI_RSC_COMPARE_AML_LENGTH: | 412 | case ACPI_RSC_COMPARE_AML_LENGTH: |
@@ -454,9 +454,9 @@ acpi_rs_convert_aml_to_resource(struct acpi_resource *resource, | |||
454 | * | 454 | * |
455 | * FUNCTION: acpi_rs_convert_resource_to_aml | 455 | * FUNCTION: acpi_rs_convert_resource_to_aml |
456 | * | 456 | * |
457 | * PARAMETERS: Resource - Pointer to the resource descriptor | 457 | * PARAMETERS: resource - Pointer to the resource descriptor |
458 | * Aml - Where the AML descriptor is returned | 458 | * aml - Where the AML descriptor is returned |
459 | * Info - Pointer to appropriate conversion table | 459 | * info - Pointer to appropriate conversion table |
460 | * | 460 | * |
461 | * RETURN: Status | 461 | * RETURN: Status |
462 | * | 462 | * |
@@ -726,7 +726,7 @@ acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, | |||
726 | 726 | ||
727 | case ACPI_RSC_EXIT_LE: | 727 | case ACPI_RSC_EXIT_LE: |
728 | /* | 728 | /* |
729 | * Control - Exit conversion if less than or equal | 729 | * control - Exit conversion if less than or equal |
730 | */ | 730 | */ |
731 | if (item_count <= info->value) { | 731 | if (item_count <= info->value) { |
732 | goto exit; | 732 | goto exit; |
@@ -735,7 +735,7 @@ acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, | |||
735 | 735 | ||
736 | case ACPI_RSC_EXIT_NE: | 736 | case ACPI_RSC_EXIT_NE: |
737 | /* | 737 | /* |
738 | * Control - Exit conversion if not equal | 738 | * control - Exit conversion if not equal |
739 | */ | 739 | */ |
740 | switch (COMPARE_OPCODE(info)) { | 740 | switch (COMPARE_OPCODE(info)) { |
741 | case ACPI_RSC_COMPARE_VALUE: | 741 | case ACPI_RSC_COMPARE_VALUE: |
@@ -757,7 +757,7 @@ acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, | |||
757 | 757 | ||
758 | case ACPI_RSC_EXIT_EQ: | 758 | case ACPI_RSC_EXIT_EQ: |
759 | /* | 759 | /* |
760 | * Control - Exit conversion if equal | 760 | * control - Exit conversion if equal |
761 | */ | 761 | */ |
762 | if (*ACPI_ADD_PTR(u8, resource, | 762 | if (*ACPI_ADD_PTR(u8, resource, |
763 | COMPARE_TARGET(info)) == | 763 | COMPARE_TARGET(info)) == |
@@ -783,7 +783,7 @@ acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, | |||
783 | #if 0 | 783 | #if 0 |
784 | /* Previous resource validations */ | 784 | /* Previous resource validations */ |
785 | 785 | ||
786 | if (aml->ext_address64.revision_iD != AML_RESOURCE_EXTENDED_ADDRESS_REVISION) { | 786 | if (aml->ext_address64.revision_ID != AML_RESOURCE_EXTENDED_ADDRESS_REVISION) { |
787 | return_ACPI_STATUS(AE_SUPPORT); | 787 | return_ACPI_STATUS(AE_SUPPORT); |
788 | } | 788 | } |
789 | 789 | ||