Re: [PATCH v2 1/2] extcon: max8997: use dev_err() instead of pr_err()

2013-03-19 Thread Chanwoo Choi
On 03/19/2013 02:30 PM, Jingoo Han wrote:
> dev_err() is more preferred than pr_err().
>
> Signed-off-by: Jingoo Han 
> ---
> No Changes since v1:
>
>  drivers/extcon/extcon-max8997.c |2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c
> index 69641bc..20772ad 100644
> --- a/drivers/extcon/extcon-max8997.c
> +++ b/drivers/extcon/extcon-max8997.c
> @@ -646,7 +646,7 @@ static void max8997_muic_detect_cable_wq(struct 
> work_struct *work)
>  
>   ret = max8997_muic_detect_dev(info);
>   if (ret < 0)
> - pr_err("failed to detect cable type\n");
> + dev_err(info->dev, "failed to detect cable type\n");
>  }
>  
>  static int max8997_muic_probe(struct platform_device *pdev)
Applied it. Thanks.

Chanwoo Choi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 1/2] extcon: max8997: use dev_err() instead of pr_err()

2013-03-19 Thread Chanwoo Choi
On 03/19/2013 02:30 PM, Jingoo Han wrote:
 dev_err() is more preferred than pr_err().

 Signed-off-by: Jingoo Han jg1@samsung.com
 ---
 No Changes since v1:

  drivers/extcon/extcon-max8997.c |2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

 diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c
 index 69641bc..20772ad 100644
 --- a/drivers/extcon/extcon-max8997.c
 +++ b/drivers/extcon/extcon-max8997.c
 @@ -646,7 +646,7 @@ static void max8997_muic_detect_cable_wq(struct 
 work_struct *work)
  
   ret = max8997_muic_detect_dev(info);
   if (ret  0)
 - pr_err(failed to detect cable type\n);
 + dev_err(info-dev, failed to detect cable type\n);
  }
  
  static int max8997_muic_probe(struct platform_device *pdev)
Applied it. Thanks.

Chanwoo Choi
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v2 1/2] extcon: max8997: use dev_err() instead of pr_err()

2013-03-18 Thread Jingoo Han
dev_err() is more preferred than pr_err().

Signed-off-by: Jingoo Han 
---
No Changes since v1:

 drivers/extcon/extcon-max8997.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c
index 69641bc..20772ad 100644
--- a/drivers/extcon/extcon-max8997.c
+++ b/drivers/extcon/extcon-max8997.c
@@ -646,7 +646,7 @@ static void max8997_muic_detect_cable_wq(struct work_struct 
*work)
 
ret = max8997_muic_detect_dev(info);
if (ret < 0)
-   pr_err("failed to detect cable type\n");
+   dev_err(info->dev, "failed to detect cable type\n");
 }
 
 static int max8997_muic_probe(struct platform_device *pdev)
-- 
1.7.2.5


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v2 1/2] extcon: max8997: use dev_err() instead of pr_err()

2013-03-18 Thread Jingoo Han
dev_err() is more preferred than pr_err().

Signed-off-by: Jingoo Han jg1@samsung.com
---
No Changes since v1:

 drivers/extcon/extcon-max8997.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c
index 69641bc..20772ad 100644
--- a/drivers/extcon/extcon-max8997.c
+++ b/drivers/extcon/extcon-max8997.c
@@ -646,7 +646,7 @@ static void max8997_muic_detect_cable_wq(struct work_struct 
*work)
 
ret = max8997_muic_detect_dev(info);
if (ret  0)
-   pr_err(failed to detect cable type\n);
+   dev_err(info-dev, failed to detect cable type\n);
 }
 
 static int max8997_muic_probe(struct platform_device *pdev)
-- 
1.7.2.5


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/