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/evrgnini.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/evrgnini.c')
-rw-r--r-- | drivers/acpi/events/evrgnini.c | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/drivers/acpi/events/evrgnini.c b/drivers/acpi/events/evrgnini.c index 6b94b38df07d..f9e561ee9a71 100644 --- a/drivers/acpi/events/evrgnini.c +++ b/drivers/acpi/events/evrgnini.c | |||
@@ -233,9 +233,9 @@ acpi_ev_pci_config_region_setup(acpi_handle handle, | |||
233 | if (ACPI_FAILURE(status)) { | 233 | if (ACPI_FAILURE(status)) { |
234 | if (status == AE_SAME_HANDLER) { | 234 | if (status == AE_SAME_HANDLER) { |
235 | /* | 235 | /* |
236 | * It is OK if the handler is already installed on the root | 236 | * It is OK if the handler is already installed on the |
237 | * bridge. Still need to return a context object for the | 237 | * root bridge. Still need to return a context object |
238 | * new PCI_Config operation region, however. | 238 | * for the new PCI_Config operation region, however. |
239 | */ | 239 | */ |
240 | status = AE_OK; | 240 | status = AE_OK; |
241 | } else { | 241 | } else { |
@@ -272,8 +272,8 @@ acpi_ev_pci_config_region_setup(acpi_handle handle, | |||
272 | } | 272 | } |
273 | 273 | ||
274 | /* | 274 | /* |
275 | * For PCI_Config space access, we need the segment, bus, | 275 | * For PCI_Config space access, we need the segment, bus, device and |
276 | * device and function numbers. Acquire them here. | 276 | * function numbers. Acquire them here. |
277 | * | 277 | * |
278 | * Find the parent device object. (This allows the operation region to be | 278 | * Find the parent device object. (This allows the operation region to be |
279 | * within a subscope under the device, such as a control method.) | 279 | * within a subscope under the device, such as a control method.) |
@@ -289,16 +289,16 @@ acpi_ev_pci_config_region_setup(acpi_handle handle, | |||
289 | } | 289 | } |
290 | 290 | ||
291 | /* | 291 | /* |
292 | * Get the PCI device and function numbers from the _ADR object | 292 | * Get the PCI device and function numbers from the _ADR object contained |
293 | * contained in the parent's scope. | 293 | * in the parent's scope. |
294 | */ | 294 | */ |
295 | status = | 295 | status = |
296 | acpi_ut_evaluate_numeric_object(METHOD_NAME__ADR, pci_device_node, | 296 | acpi_ut_evaluate_numeric_object(METHOD_NAME__ADR, pci_device_node, |
297 | &pci_value); | 297 | &pci_value); |
298 | 298 | ||
299 | /* | 299 | /* |
300 | * The default is zero, and since the allocation above zeroed | 300 | * The default is zero, and since the allocation above zeroed the data, |
301 | * the data, just do nothing on failure. | 301 | * just do nothing on failure. |
302 | */ | 302 | */ |
303 | if (ACPI_SUCCESS(status)) { | 303 | if (ACPI_SUCCESS(status)) { |
304 | pci_id->device = ACPI_HIWORD(ACPI_LODWORD(pci_value)); | 304 | pci_id->device = ACPI_HIWORD(ACPI_LODWORD(pci_value)); |
@@ -382,9 +382,8 @@ static u8 acpi_ev_is_pci_root_bridge(struct acpi_namespace_node *node) | |||
382 | struct acpi_compatible_id_list *cid; | 382 | struct acpi_compatible_id_list *cid; |
383 | u32 i; | 383 | u32 i; |
384 | 384 | ||
385 | /* | 385 | /* Get the _HID and check for a PCI Root Bridge */ |
386 | * Get the _HID and check for a PCI Root Bridge | 386 | |
387 | */ | ||
388 | status = acpi_ut_execute_HID(node, &hid); | 387 | status = acpi_ut_execute_HID(node, &hid); |
389 | if (ACPI_FAILURE(status)) { | 388 | if (ACPI_FAILURE(status)) { |
390 | return (FALSE); | 389 | return (FALSE); |
@@ -394,10 +393,8 @@ static u8 acpi_ev_is_pci_root_bridge(struct acpi_namespace_node *node) | |||
394 | return (TRUE); | 393 | return (TRUE); |
395 | } | 394 | } |
396 | 395 | ||
397 | /* | 396 | /* The _HID did not match. Get the _CID and check for a PCI Root Bridge */ |
398 | * The _HID did not match. | 397 | |
399 | * Get the _CID and check for a PCI Root Bridge | ||
400 | */ | ||
401 | status = acpi_ut_execute_CID(node, &cid); | 398 | status = acpi_ut_execute_CID(node, &cid); |
402 | if (ACPI_FAILURE(status)) { | 399 | if (ACPI_FAILURE(status)) { |
403 | return (FALSE); | 400 | return (FALSE); |
@@ -516,9 +513,9 @@ acpi_ev_default_region_setup(acpi_handle handle, | |||
516 | * Get the appropriate address space handler for a newly | 513 | * Get the appropriate address space handler for a newly |
517 | * created region. | 514 | * created region. |
518 | * | 515 | * |
519 | * This also performs address space specific initialization. For | 516 | * This also performs address space specific initialization. For |
520 | * example, PCI regions must have an _ADR object that contains | 517 | * example, PCI regions must have an _ADR object that contains |
521 | * a PCI address in the scope of the definition. This address is | 518 | * a PCI address in the scope of the definition. This address is |
522 | * required to perform an access to PCI config space. | 519 | * required to perform an access to PCI config space. |
523 | * | 520 | * |
524 | * MUTEX: Interpreter should be unlocked, because we may run the _REG | 521 | * MUTEX: Interpreter should be unlocked, because we may run the _REG |
@@ -572,7 +569,7 @@ acpi_ev_initialize_region(union acpi_operand_object *region_obj, | |||
572 | if (ACPI_SUCCESS(status)) { | 569 | if (ACPI_SUCCESS(status)) { |
573 | /* | 570 | /* |
574 | * The _REG method is optional and there can be only one per region | 571 | * The _REG method is optional and there can be only one per region |
575 | * definition. This will be executed when the handler is attached | 572 | * definition. This will be executed when the handler is attached |
576 | * or removed | 573 | * or removed |
577 | */ | 574 | */ |
578 | region_obj2->extra.method_REG = method_node; | 575 | region_obj2->extra.method_REG = method_node; |
@@ -670,10 +667,8 @@ acpi_ev_initialize_region(union acpi_operand_object *region_obj, | |||
670 | } | 667 | } |
671 | } | 668 | } |
672 | 669 | ||
673 | /* | 670 | /* This node does not have the handler we need; Pop up one level */ |
674 | * This node does not have the handler we need; | 671 | |
675 | * Pop up one level | ||
676 | */ | ||
677 | node = acpi_ns_get_parent_node(node); | 672 | node = acpi_ns_get_parent_node(node); |
678 | } | 673 | } |
679 | 674 | ||