Patchwork [2/4] acpi: pcc: renaming of ACPI object evaluation function names

login
register
mail settings
Submitter Colin King
Date Dec. 15, 2012, 11:48 p.m.
Message ID <1355615318-28765-3-git-send-email-colin.king@canonical.com>
Download mbox | patch
Permalink /patch/206644/
State Accepted
Headers show

Comments

Colin King - Dec. 15, 2012, 11:48 p.m.
From: Colin Ian King <colin.king@canonical.com>

Use the new ACPI object evaluation function names

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 src/acpi/pcc/pcc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Keng-Yu Lin - Dec. 18, 2012, 3:49 a.m.
On Sun, Dec 16, 2012 at 7:48 AM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Use the new ACPI object evaluation function names
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  src/acpi/pcc/pcc.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/acpi/pcc/pcc.c b/src/acpi/pcc/pcc.c
> index 3848014..6660196 100644
> --- a/src/acpi/pcc/pcc.c
> +++ b/src/acpi/pcc/pcc.c
> @@ -88,7 +88,7 @@ typedef struct {
>   */
>  static int pcc_init(fwts_framework *fw)
>  {
> -       if (fwts_method_init(fw) != FWTS_OK)
> +       if (fwts_acpi_init(fw) != FWTS_OK)
>                 return FWTS_ERROR;
>
>         return FWTS_OK;
> @@ -100,7 +100,7 @@ static int pcc_init(fwts_framework *fw)
>   */
>  static int pcc_deinit(fwts_framework *fw)
>  {
> -       return fwts_method_deinit(fw);
> +       return fwts_acpi_deinit(fw);
>  }
>
>  #if CHECK_PCC_HDR
> @@ -423,13 +423,13 @@ static int pcc_test1(fwts_framework *fw)
>                 "test will be skipped.");
>         fwts_log_nl(fw);
>
> -       if ((pccs = fwts_method_get_names()) != NULL) {
> +       if ((pccs = fwts_acpi_object_get_names()) != NULL) {
>                 fwts_list_foreach(item, pccs) {
>                         char *pcc_name = fwts_list_data(char*, item);
>                         size_t len = strlen(pcc_name);
>
>                         if (strncmp(name, pcc_name + len - name_len, name_len) == 0) {
> -                               ret = fwts_method_evaluate(fw, pcc_name, NULL, &buf);
> +                               ret = fwts_acpi_object_evaluate(fw, pcc_name, NULL, &buf);
>                                 if (ACPI_FAILURE(ret) == AE_OK) {
>                                         pcc_check_buffer(fw, pcc_name, &buf);
>                                         count++;
> --
> 1.8.0
>
Acked-by: Keng-Yu Lin <kengyu@canonical.com>
Alex Hung - Dec. 21, 2012, 2:07 a.m.
On 12/16/2012 07:48 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Use the new ACPI object evaluation function names
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   src/acpi/pcc/pcc.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/acpi/pcc/pcc.c b/src/acpi/pcc/pcc.c
> index 3848014..6660196 100644
> --- a/src/acpi/pcc/pcc.c
> +++ b/src/acpi/pcc/pcc.c
> @@ -88,7 +88,7 @@ typedef struct {
>    */
>   static int pcc_init(fwts_framework *fw)
>   {
> -	if (fwts_method_init(fw) != FWTS_OK)
> +	if (fwts_acpi_init(fw) != FWTS_OK)
>   		return FWTS_ERROR;
>
>   	return FWTS_OK;
> @@ -100,7 +100,7 @@ static int pcc_init(fwts_framework *fw)
>    */
>   static int pcc_deinit(fwts_framework *fw)
>   {
> -	return fwts_method_deinit(fw);
> +	return fwts_acpi_deinit(fw);
>   }
>
>   #if CHECK_PCC_HDR
> @@ -423,13 +423,13 @@ static int pcc_test1(fwts_framework *fw)
>   		"test will be skipped.");
>   	fwts_log_nl(fw);
>
> -	if ((pccs = fwts_method_get_names()) != NULL) {
> +	if ((pccs = fwts_acpi_object_get_names()) != NULL) {
>   		fwts_list_foreach(item, pccs) {
>   			char *pcc_name = fwts_list_data(char*, item);
>   			size_t len = strlen(pcc_name);
>
>   			if (strncmp(name, pcc_name + len - name_len, name_len) == 0) {
> -				ret = fwts_method_evaluate(fw, pcc_name, NULL, &buf);
> +				ret = fwts_acpi_object_evaluate(fw, pcc_name, NULL, &buf);
>   				if (ACPI_FAILURE(ret) == AE_OK) {
>   					pcc_check_buffer(fw, pcc_name, &buf);
>   					count++;
>
Acked-by: Alex Hung <alex.hung@canonical.com>

Patch

diff --git a/src/acpi/pcc/pcc.c b/src/acpi/pcc/pcc.c
index 3848014..6660196 100644
--- a/src/acpi/pcc/pcc.c
+++ b/src/acpi/pcc/pcc.c
@@ -88,7 +88,7 @@  typedef struct {
  */
 static int pcc_init(fwts_framework *fw)
 {
-	if (fwts_method_init(fw) != FWTS_OK)
+	if (fwts_acpi_init(fw) != FWTS_OK)
 		return FWTS_ERROR;
 
 	return FWTS_OK;
@@ -100,7 +100,7 @@  static int pcc_init(fwts_framework *fw)
  */
 static int pcc_deinit(fwts_framework *fw)
 {
-	return fwts_method_deinit(fw);
+	return fwts_acpi_deinit(fw);
 }
 
 #if CHECK_PCC_HDR
@@ -423,13 +423,13 @@  static int pcc_test1(fwts_framework *fw)
 		"test will be skipped.");
 	fwts_log_nl(fw);
 
-	if ((pccs = fwts_method_get_names()) != NULL) {
+	if ((pccs = fwts_acpi_object_get_names()) != NULL) {
 		fwts_list_foreach(item, pccs) {
 			char *pcc_name = fwts_list_data(char*, item);
 			size_t len = strlen(pcc_name);
 
 			if (strncmp(name, pcc_name + len - name_len, name_len) == 0) {
-				ret = fwts_method_evaluate(fw, pcc_name, NULL, &buf);
+				ret = fwts_acpi_object_evaluate(fw, pcc_name, NULL, &buf);
 				if (ACPI_FAILURE(ret) == AE_OK) {
 					pcc_check_buffer(fw, pcc_name, &buf);
 					count++;