mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] pwm: Use pr_* functions in pwm-samsung.c file
@ 2012-07-06  9:13 Sachin Kamat
  2012-07-09  6:27 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-07-06  9:13 UTC (permalink / raw)
  To: linux-kernel; +Cc: thierry.reding, sachin.kamat, patches

Replace printk with pr_* functions to avoid checkpatch warnings.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/pwm/pwm-samsung.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/pwm/pwm-samsung.c b/drivers/pwm/pwm-samsung.c
index 35fa0e8..d103865 100644
--- a/drivers/pwm/pwm-samsung.c
+++ b/drivers/pwm/pwm-samsung.c
@@ -11,6 +11,8 @@
  * the Free Software Foundation; either version 2 of the License.
 */
 
+#define pr_fmt(fmt) "pwm-samsung: " fmt
+
 #include <linux/export.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
@@ -340,13 +342,13 @@ static int __init pwm_init(void)
 	clk_scaler[1] = clk_get(NULL, "pwm-scaler1");
 
 	if (IS_ERR(clk_scaler[0]) || IS_ERR(clk_scaler[1])) {
-		printk(KERN_ERR "%s: failed to get scaler clocks\n", __func__);
+		pr_err("failed to get scaler clocks\n");
 		return -EINVAL;
 	}
 
 	ret = platform_driver_register(&s3c_pwm_driver);
 	if (ret)
-		printk(KERN_ERR "%s: failed to add pwm driver\n", __func__);
+		pr_err("failed to add pwm driver\n");
 
 	return ret;
 }
-- 
1.7.4.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] pwm: Use pr_* functions in pwm-samsung.c file
  2012-07-06  9:13 [PATCH 1/1] pwm: Use pr_* functions in pwm-samsung.c file Sachin Kamat
@ 2012-07-09  6:27 ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2012-07-09  6:27 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-kernel, patches

[-- Attachment #1: Type: text/plain, Size: 1318 bytes --]

On Fri, Jul 06, 2012 at 02:43:50PM +0530, Sachin Kamat wrote:
> Replace printk with pr_* functions to avoid checkpatch warnings.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  drivers/pwm/pwm-samsung.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)

Applied, thanks,

Thierry

> 
> diff --git a/drivers/pwm/pwm-samsung.c b/drivers/pwm/pwm-samsung.c
> index 35fa0e8..d103865 100644
> --- a/drivers/pwm/pwm-samsung.c
> +++ b/drivers/pwm/pwm-samsung.c
> @@ -11,6 +11,8 @@
>   * the Free Software Foundation; either version 2 of the License.
>  */
>  
> +#define pr_fmt(fmt) "pwm-samsung: " fmt
> +
>  #include <linux/export.h>
>  #include <linux/kernel.h>
>  #include <linux/platform_device.h>
> @@ -340,13 +342,13 @@ static int __init pwm_init(void)
>  	clk_scaler[1] = clk_get(NULL, "pwm-scaler1");
>  
>  	if (IS_ERR(clk_scaler[0]) || IS_ERR(clk_scaler[1])) {
> -		printk(KERN_ERR "%s: failed to get scaler clocks\n", __func__);
> +		pr_err("failed to get scaler clocks\n");
>  		return -EINVAL;
>  	}
>  
>  	ret = platform_driver_register(&s3c_pwm_driver);
>  	if (ret)
> -		printk(KERN_ERR "%s: failed to add pwm driver\n", __func__);
> +		pr_err("failed to add pwm driver\n");
>  
>  	return ret;
>  }
> -- 
> 1.7.4.1
> 
> 
> 

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-09  6:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-06  9:13 [PATCH 1/1] pwm: Use pr_* functions in pwm-samsung.c file Sachin Kamat
2012-07-09  6:27 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®