aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/hwsleep.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2009-02-23 02:02:07 -0500
committerLen Brown <len.brown@intel.com>2009-03-26 16:38:31 -0400
commit50ffba1bd3120b069617455545bc27bcf3cf7579 (patch)
treea4e1e1e22e526ff5067d9fb0fb90e18fccc948a3 /drivers/acpi/acpica/hwsleep.c
parent9892dd23cbbfab1f7d4818622296e415979a9c77 (diff)
ACPICA: Rename ACPI bit register access functions
Rename acpi_get_register and acpi_set_register to clarify the purpose of these functions. New names are acpi_read_bit_register and acpi_write_bit_register. 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/hwsleep.c')
-rw-r--r--drivers/acpi/acpica/hwsleep.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/acpi/acpica/hwsleep.c b/drivers/acpi/acpica/hwsleep.c
index 677ccb6bceea..78d62b8a5c31 100644
--- a/drivers/acpi/acpica/hwsleep.c
+++ b/drivers/acpi/acpica/hwsleep.c
@@ -250,7 +250,7 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state)
250 250
251 /* Clear wake status */ 251 /* Clear wake status */
252 252
253 status = acpi_set_register(ACPI_BITREG_WAKE_STATUS, 1); 253 status = acpi_write_bit_register(ACPI_BITREG_WAKE_STATUS, 1);
254 if (ACPI_FAILURE(status)) { 254 if (ACPI_FAILURE(status)) {
255 return_ACPI_STATUS(status); 255 return_ACPI_STATUS(status);
256 } 256 }
@@ -365,7 +365,7 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state)
365 /* Wait until we enter sleep state */ 365 /* Wait until we enter sleep state */
366 366
367 do { 367 do {
368 status = acpi_get_register(ACPI_BITREG_WAKE_STATUS, 368 status = acpi_read_bit_register(ACPI_BITREG_WAKE_STATUS,
369 &in_value); 369 &in_value);
370 if (ACPI_FAILURE(status)) { 370 if (ACPI_FAILURE(status)) {
371 return_ACPI_STATUS(status); 371 return_ACPI_STATUS(status);
@@ -399,7 +399,7 @@ acpi_status asmlinkage acpi_enter_sleep_state_s4bios(void)
399 399
400 ACPI_FUNCTION_TRACE(acpi_enter_sleep_state_s4bios); 400 ACPI_FUNCTION_TRACE(acpi_enter_sleep_state_s4bios);
401 401
402 status = acpi_set_register(ACPI_BITREG_WAKE_STATUS, 1); 402 status = acpi_write_bit_register(ACPI_BITREG_WAKE_STATUS, 1);
403 if (ACPI_FAILURE(status)) { 403 if (ACPI_FAILURE(status)) {
404 return_ACPI_STATUS(status); 404 return_ACPI_STATUS(status);
405 } 405 }
@@ -431,7 +431,8 @@ acpi_status asmlinkage acpi_enter_sleep_state_s4bios(void)
431 431
432 do { 432 do {
433 acpi_os_stall(1000); 433 acpi_os_stall(1000);
434 status = acpi_get_register(ACPI_BITREG_WAKE_STATUS, &in_value); 434 status =
435 acpi_read_bit_register(ACPI_BITREG_WAKE_STATUS, &in_value);
435 if (ACPI_FAILURE(status)) { 436 if (ACPI_FAILURE(status)) {
436 return_ACPI_STATUS(status); 437 return_ACPI_STATUS(status);
437 } 438 }
@@ -592,18 +593,18 @@ acpi_status acpi_leave_sleep_state(u8 sleep_state)
592 * it to determine whether the system is rebooting or resuming. Clear 593 * it to determine whether the system is rebooting or resuming. Clear
593 * it for compatibility. 594 * it for compatibility.
594 */ 595 */
595 acpi_set_register(ACPI_BITREG_WAKE_STATUS, 1); 596 acpi_write_bit_register(ACPI_BITREG_WAKE_STATUS, 1);
596 597
597 acpi_gbl_system_awake_and_running = TRUE; 598 acpi_gbl_system_awake_and_running = TRUE;
598 599
599 /* Enable power button */ 600 /* Enable power button */
600 601
601 (void) 602 (void)
602 acpi_set_register(acpi_gbl_fixed_event_info 603 acpi_write_bit_register(acpi_gbl_fixed_event_info
603 [ACPI_EVENT_POWER_BUTTON].enable_register_id, 1); 604 [ACPI_EVENT_POWER_BUTTON].enable_register_id, 1);
604 605
605 (void) 606 (void)
606 acpi_set_register(acpi_gbl_fixed_event_info 607 acpi_write_bit_register(acpi_gbl_fixed_event_info
607 [ACPI_EVENT_POWER_BUTTON].status_register_id, 1); 608 [ACPI_EVENT_POWER_BUTTON].status_register_id, 1);
608 609
609 arg.integer.value = ACPI_SST_WORKING; 610 arg.integer.value = ACPI_SST_WORKING;