aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/evgpe.c
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2010-12-13 00:36:15 -0500
committerLen Brown <len.brown@intel.com>2011-01-12 04:24:40 -0500
commit3a37898d507794cfc68a092303e02651d3f01308 (patch)
treee3a53e7746a5a69000553814d8f07fa51b99ab45 /drivers/acpi/acpica/evgpe.c
parent3cfd53d53f700a225716294842b1a843326dea21 (diff)
ACPICA: Rename some function and variable names
Some function and variable names are renamed to be consistent with ACPICA code base. acpi_raw_enable_gpe -> acpi_ev_add_gpe_reference acpi_raw_disable_gpe -> acpi_ev_remove_gpe_reference acpi_gpe_can_wake -> acpi_setup_gpe_for_wake acpi_gpe_wakeup -> acpi_set_gpe_wake_mask acpi_update_gpes -> acpi_update_all_gpes acpi_all_gpes_initialized -> acpi_gbl_all_gpes_initialized acpi_handler_info -> acpi_gpe_handler_info ... 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/evgpe.c')
-rw-r--r--drivers/acpi/acpica/evgpe.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c
index f226eac314db..005c170d2448 100644
--- a/drivers/acpi/acpica/evgpe.c
+++ b/drivers/acpi/acpica/evgpe.c
@@ -137,7 +137,7 @@ acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info)
137 137
138/******************************************************************************* 138/*******************************************************************************
139 * 139 *
140 * FUNCTION: acpi_raw_enable_gpe 140 * FUNCTION: acpi_ev_add_gpe_reference
141 * 141 *
142 * PARAMETERS: gpe_event_info - GPE to enable 142 * PARAMETERS: gpe_event_info - GPE to enable
143 * 143 *
@@ -148,10 +148,12 @@ acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info)
148 * 148 *
149 ******************************************************************************/ 149 ******************************************************************************/
150 150
151acpi_status acpi_raw_enable_gpe(struct acpi_gpe_event_info *gpe_event_info) 151acpi_status acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info)
152{ 152{
153 acpi_status status = AE_OK; 153 acpi_status status = AE_OK;
154 154
155 ACPI_FUNCTION_TRACE(ev_add_gpe_reference);
156
155 if (gpe_event_info->runtime_count == ACPI_UINT8_MAX) { 157 if (gpe_event_info->runtime_count == ACPI_UINT8_MAX) {
156 return_ACPI_STATUS(AE_LIMIT); 158 return_ACPI_STATUS(AE_LIMIT);
157 } 159 }
@@ -173,7 +175,7 @@ acpi_status acpi_raw_enable_gpe(struct acpi_gpe_event_info *gpe_event_info)
173 175
174/******************************************************************************* 176/*******************************************************************************
175 * 177 *
176 * FUNCTION: acpi_raw_disable_gpe 178 * FUNCTION: acpi_ev_remove_gpe_reference
177 * 179 *
178 * PARAMETERS: gpe_event_info - GPE to disable 180 * PARAMETERS: gpe_event_info - GPE to disable
179 * 181 *
@@ -184,10 +186,12 @@ acpi_status acpi_raw_enable_gpe(struct acpi_gpe_event_info *gpe_event_info)
184 * 186 *
185 ******************************************************************************/ 187 ******************************************************************************/
186 188
187acpi_status acpi_raw_disable_gpe(struct acpi_gpe_event_info *gpe_event_info) 189acpi_status acpi_ev_remove_gpe_reference(struct acpi_gpe_event_info *gpe_event_info)
188{ 190{
189 acpi_status status = AE_OK; 191 acpi_status status = AE_OK;
190 192
193 ACPI_FUNCTION_TRACE(ev_remove_gpe_reference);
194
191 if (!gpe_event_info->runtime_count) { 195 if (!gpe_event_info->runtime_count) {
192 return_ACPI_STATUS(AE_LIMIT); 196 return_ACPI_STATUS(AE_LIMIT);
193 } 197 }
@@ -529,7 +533,7 @@ static void acpi_ev_asynch_enable_gpe(void *context)
529 * Enable this GPE, conditionally. This means that the GPE will only be 533 * Enable this GPE, conditionally. This means that the GPE will only be
530 * physically enabled if the enable_for_run bit is set in the event_info 534 * physically enabled if the enable_for_run bit is set in the event_info
531 */ 535 */
532 (void)acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_COND_ENABLE); 536 (void)acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_CONDITIONAL_ENABLE);
533 537
534 return_VOID; 538 return_VOID;
535} 539}