diff options
author | Bob Moore <robert.moore@intel.com> | 2008-11-12 03:01:56 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-12-29 22:38:37 -0500 |
commit | 9f15fc666ef54afc7aff31dfa31edecf00e0d81a (patch) | |
tree | b7fee548a54ac5c1a599035e16160a9ac2162e45 /drivers/acpi/events/evgpeblk.c | |
parent | 009c4cbe99bea2da53f29ad685975a36f38c001c (diff) |
ACPICA: Reformat comments, no functional changes
Reformat comments to use fewer lines.
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/events/evgpeblk.c')
-rw-r--r-- | drivers/acpi/events/evgpeblk.c | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/drivers/acpi/events/evgpeblk.c b/drivers/acpi/events/evgpeblk.c index 73c058e2f5c2..7537cda54050 100644 --- a/drivers/acpi/events/evgpeblk.c +++ b/drivers/acpi/events/evgpeblk.c | |||
@@ -309,17 +309,17 @@ acpi_ev_save_method_info(acpi_handle obj_handle, | |||
309 | (gpe_block->block_base_number + | 309 | (gpe_block->block_base_number + |
310 | (gpe_block->register_count * 8)))) { | 310 | (gpe_block->register_count * 8)))) { |
311 | /* | 311 | /* |
312 | * Not valid for this GPE block, just ignore it | 312 | * Not valid for this GPE block, just ignore it. However, it may be |
313 | * However, it may be valid for a different GPE block, since GPE0 and GPE1 | 313 | * valid for a different GPE block, since GPE0 and GPE1 methods both |
314 | * methods both appear under \_GPE. | 314 | * appear under \_GPE. |
315 | */ | 315 | */ |
316 | return_ACPI_STATUS(AE_OK); | 316 | return_ACPI_STATUS(AE_OK); |
317 | } | 317 | } |
318 | 318 | ||
319 | /* | 319 | /* |
320 | * Now we can add this information to the gpe_event_info block | 320 | * Now we can add this information to the gpe_event_info block for use |
321 | * for use during dispatch of this GPE. Default type is RUNTIME, although | 321 | * during dispatch of this GPE. Default type is RUNTIME, although this may |
322 | * this may change when the _PRW methods are executed later. | 322 | * change when the _PRW methods are executed later. |
323 | */ | 323 | */ |
324 | gpe_event_info = | 324 | gpe_event_info = |
325 | &gpe_block->event_info[gpe_number - gpe_block->block_base_number]; | 325 | &gpe_block->event_info[gpe_number - gpe_block->block_base_number]; |
@@ -394,8 +394,8 @@ acpi_ev_match_prw_and_gpe(acpi_handle obj_handle, | |||
394 | gpe_block = gpe_info->gpe_block; | 394 | gpe_block = gpe_info->gpe_block; |
395 | 395 | ||
396 | /* | 396 | /* |
397 | * The _PRW object must return a package, we are only interested | 397 | * The _PRW object must return a package, we are only interested in the |
398 | * in the first element | 398 | * first element |
399 | */ | 399 | */ |
400 | obj_desc = pkg_desc->package.elements[0]; | 400 | obj_desc = pkg_desc->package.elements[0]; |
401 | 401 | ||
@@ -434,7 +434,7 @@ acpi_ev_match_prw_and_gpe(acpi_handle obj_handle, | |||
434 | /* | 434 | /* |
435 | * Is this GPE within this block? | 435 | * Is this GPE within this block? |
436 | * | 436 | * |
437 | * TRUE iff these conditions are true: | 437 | * TRUE if and only if these conditions are true: |
438 | * 1) The GPE devices match. | 438 | * 1) The GPE devices match. |
439 | * 2) The GPE index(number) is within the range of the Gpe Block | 439 | * 2) The GPE index(number) is within the range of the Gpe Block |
440 | * associated with the GPE device. | 440 | * associated with the GPE device. |
@@ -457,6 +457,7 @@ acpi_ev_match_prw_and_gpe(acpi_handle obj_handle, | |||
457 | if (ACPI_FAILURE(status)) { | 457 | if (ACPI_FAILURE(status)) { |
458 | goto cleanup; | 458 | goto cleanup; |
459 | } | 459 | } |
460 | |||
460 | status = | 461 | status = |
461 | acpi_ev_update_gpe_enable_masks(gpe_event_info, | 462 | acpi_ev_update_gpe_enable_masks(gpe_event_info, |
462 | ACPI_GPE_DISABLE); | 463 | ACPI_GPE_DISABLE); |
@@ -476,9 +477,9 @@ acpi_ev_match_prw_and_gpe(acpi_handle obj_handle, | |||
476 | * RETURN: A GPE interrupt block | 477 | * RETURN: A GPE interrupt block |
477 | * | 478 | * |
478 | * DESCRIPTION: Get or Create a GPE interrupt block. There is one interrupt | 479 | * DESCRIPTION: Get or Create a GPE interrupt block. There is one interrupt |
479 | * block per unique interrupt level used for GPEs. | 480 | * block per unique interrupt level used for GPEs. Should be |
480 | * Should be called only when the GPE lists are semaphore locked | 481 | * called only when the GPE lists are semaphore locked and not |
481 | * and not subject to change. | 482 | * subject to change. |
482 | * | 483 | * |
483 | ******************************************************************************/ | 484 | ******************************************************************************/ |
484 | 485 | ||
@@ -608,8 +609,9 @@ acpi_ev_delete_gpe_xrupt(struct acpi_gpe_xrupt_info *gpe_xrupt) | |||
608 | * | 609 | * |
609 | * FUNCTION: acpi_ev_install_gpe_block | 610 | * FUNCTION: acpi_ev_install_gpe_block |
610 | * | 611 | * |
611 | * PARAMETERS: gpe_block - New GPE block | 612 | * PARAMETERS: gpe_block - New GPE block |
612 | * interrupt_number - Xrupt to be associated with this GPE block | 613 | * interrupt_number - Xrupt to be associated with this |
614 | * GPE block | ||
613 | * | 615 | * |
614 | * RETURN: Status | 616 | * RETURN: Status |
615 | * | 617 | * |
@@ -666,7 +668,7 @@ acpi_ev_install_gpe_block(struct acpi_gpe_block_info *gpe_block, | |||
666 | * | 668 | * |
667 | * FUNCTION: acpi_ev_delete_gpe_block | 669 | * FUNCTION: acpi_ev_delete_gpe_block |
668 | * | 670 | * |
669 | * PARAMETERS: gpe_block - Existing GPE block | 671 | * PARAMETERS: gpe_block - Existing GPE block |
670 | * | 672 | * |
671 | * RETURN: Status | 673 | * RETURN: Status |
672 | * | 674 | * |
@@ -786,9 +788,9 @@ acpi_ev_create_gpe_info_blocks(struct acpi_gpe_block_info *gpe_block) | |||
786 | 788 | ||
787 | /* | 789 | /* |
788 | * Initialize the GPE Register and Event structures. A goal of these | 790 | * Initialize the GPE Register and Event structures. A goal of these |
789 | * tables is to hide the fact that there are two separate GPE register sets | 791 | * tables is to hide the fact that there are two separate GPE register |
790 | * in a given GPE hardware block, the status registers occupy the first half, | 792 | * sets in a given GPE hardware block, the status registers occupy the |
791 | * and the enable registers occupy the second half. | 793 | * first half, and the enable registers occupy the second half. |
792 | */ | 794 | */ |
793 | this_register = gpe_register_info; | 795 | this_register = gpe_register_info; |
794 | this_event = gpe_event_info; | 796 | this_event = gpe_event_info; |