diff options
Diffstat (limited to 'drivers/acpi/acpica/dsmthdat.c')
| -rw-r--r-- | drivers/acpi/acpica/dsmthdat.c | 50 | 
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/acpi/acpica/dsmthdat.c b/drivers/acpi/acpica/dsmthdat.c index 8095306fcd8..b67522df01a 100644 --- a/drivers/acpi/acpica/dsmthdat.c +++ b/drivers/acpi/acpica/dsmthdat.c @@ -5,7 +5,7 @@   ******************************************************************************/  /* - * Copyright (C) 2000 - 2010, Intel Corp. + * Copyright (C) 2000 - 2014, Intel Corp.   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -76,7 +76,7 @@ acpi_ds_method_data_get_type(u16 opcode,   * RETURN:      Status   *   * DESCRIPTION: Initialize the data structures that hold the method's arguments - *              and locals.  The data struct is an array of namespace nodes for + *              and locals. The data struct is an array of namespace nodes for   *              each - this allows ref_of and de_ref_of to work properly for these   *              special data types.   * @@ -129,7 +129,7 @@ void acpi_ds_method_data_init(struct acpi_walk_state *walk_state)   *   * RETURN:      None   * - * DESCRIPTION: Delete method locals and arguments.  Arguments are only + * DESCRIPTION: Delete method locals and arguments. Arguments are only   *              deleted if this method was called from another method.   *   ******************************************************************************/ @@ -177,13 +177,13 @@ void acpi_ds_method_data_delete_all(struct acpi_walk_state *walk_state)   *   * FUNCTION:    acpi_ds_method_data_init_args   * - * PARAMETERS:  *Params         - Pointer to a parameter list for the method + * PARAMETERS:  *params         - Pointer to a parameter list for the method   *              max_param_count - The arg count for this method   *              walk_state      - Current walk state object   *   * RETURN:      Status   * - * DESCRIPTION: Initialize arguments for a method.  The parameter list is a list + * DESCRIPTION: Initialize arguments for a method. The parameter list is a list   *              of ACPI operand objects, either null terminated or whose length   *              is defined by max_param_count.   * @@ -232,11 +232,11 @@ acpi_ds_method_data_init_args(union acpi_operand_object **params,   *   * FUNCTION:    acpi_ds_method_data_get_node   * - * PARAMETERS:  Type                - Either ACPI_REFCLASS_LOCAL or + * PARAMETERS:  type                - Either ACPI_REFCLASS_LOCAL or   *                                    ACPI_REFCLASS_ARG - *              Index               - Which Local or Arg whose type to get + *              index               - Which Local or Arg whose type to get   *              walk_state          - Current walk state object - *              Node                - Where the node is returned. + *              node                - Where the node is returned.   *   * RETURN:      Status and node   * @@ -285,6 +285,7 @@ acpi_ds_method_data_get_node(u8 type,  		break;  	default: +  		ACPI_ERROR((AE_INFO, "Type %u is invalid", type));  		return_ACPI_STATUS(AE_TYPE);  	} @@ -296,10 +297,10 @@ acpi_ds_method_data_get_node(u8 type,   *   * FUNCTION:    acpi_ds_method_data_set_value   * - * PARAMETERS:  Type                - Either ACPI_REFCLASS_LOCAL or + * PARAMETERS:  type                - Either ACPI_REFCLASS_LOCAL or   *                                    ACPI_REFCLASS_ARG - *              Index               - Which Local or Arg to get - *              Object              - Object to be inserted into the stack entry + *              index               - Which Local or Arg to get + *              object              - Object to be inserted into the stack entry   *              walk_state          - Current walk state object   *   * RETURN:      Status @@ -336,7 +337,7 @@ acpi_ds_method_data_set_value(u8 type,  	 * Increment ref count so object can't be deleted while installed.  	 * NOTE: We do not copy the object in order to preserve the call by  	 * reference semantics of ACPI Control Method invocation. -	 * (See ACPI Specification 2.0_c) +	 * (See ACPI Specification 2.0C)  	 */  	acpi_ut_add_reference(object); @@ -350,9 +351,9 @@ acpi_ds_method_data_set_value(u8 type,   *   * FUNCTION:    acpi_ds_method_data_get_value   * - * PARAMETERS:  Type                - Either ACPI_REFCLASS_LOCAL or + * PARAMETERS:  type                - Either ACPI_REFCLASS_LOCAL or   *                                    ACPI_REFCLASS_ARG - *              Index               - Which local_var or argument to get + *              index               - Which localVar or argument to get   *              walk_state          - Current walk state object   *              dest_desc           - Where Arg or Local value is returned   * @@ -401,7 +402,7 @@ acpi_ds_method_data_get_value(u8 type,  		 * This means that either 1) The expected argument was  		 * not passed to the method, or 2) A local variable  		 * was referenced by the method (via the ASL) -		 * before it was initialized.  Either case is an error. +		 * before it was initialized. Either case is an error.  		 */  		/* If slack enabled, init the local_x/arg_x to an Integer of value zero */ @@ -428,7 +429,6 @@ acpi_ds_method_data_get_value(u8 type,  				return_ACPI_STATUS(AE_AML_UNINITIALIZED_ARG);  			case ACPI_REFCLASS_LOCAL: -  				/*  				 * No error message for this case, will be trapped again later to  				 * detect and ignore cases of Store(local_x,local_x) @@ -458,14 +458,14 @@ acpi_ds_method_data_get_value(u8 type,   *   * FUNCTION:    acpi_ds_method_data_delete_value   * - * PARAMETERS:  Type                - Either ACPI_REFCLASS_LOCAL or + * PARAMETERS:  type                - Either ACPI_REFCLASS_LOCAL or   *                                    ACPI_REFCLASS_ARG - *              Index               - Which local_var or argument to delete + *              index               - Which localVar or argument to delete   *              walk_state          - Current walk state object   *   * RETURN:      None   * - * DESCRIPTION: Delete the entry at Opcode:Index.  Inserts + * DESCRIPTION: Delete the entry at Opcode:Index. Inserts   *              a null into the stack slot after the object is deleted.   *   ******************************************************************************/ @@ -515,15 +515,15 @@ acpi_ds_method_data_delete_value(u8 type,   *   * FUNCTION:    acpi_ds_store_object_to_local   * - * PARAMETERS:  Type                - Either ACPI_REFCLASS_LOCAL or + * PARAMETERS:  type                - Either ACPI_REFCLASS_LOCAL or   *                                    ACPI_REFCLASS_ARG - *              Index               - Which Local or Arg to set + *              index               - Which Local or Arg to set   *              obj_desc            - Value to be stored   *              walk_state          - Current walk state   *   * RETURN:      Status   * - * DESCRIPTION: Store a value in an Arg or Local.  The obj_desc is installed + * DESCRIPTION: Store a value in an Arg or Local. The obj_desc is installed   *              as the new value for the Arg or Local and the reference count   *              for obj_desc is incremented.   * @@ -566,7 +566,7 @@ acpi_ds_store_object_to_local(u8 type,  	/*  	 * If the reference count on the object is more than one, we must -	 * take a copy of the object before we store.  A reference count +	 * take a copy of the object before we store. A reference count  	 * of exactly 1 means that the object was just created during the  	 * evaluation of an expression, and we can safely use it since it  	 * is not used anywhere else. @@ -670,8 +670,8 @@ acpi_ds_store_object_to_local(u8 type,   *   * FUNCTION:    acpi_ds_method_data_get_type   * - * PARAMETERS:  Opcode              - Either AML_LOCAL_OP or AML_ARG_OP - *              Index               - Which Local or Arg whose type to get + * PARAMETERS:  opcode              - Either AML_LOCAL_OP or AML_ARG_OP + *              index               - Which Local or Arg whose type to get   *              walk_state          - Current walk state object   *   * RETURN:      Data type of current value of the selected Arg or Local  | 
