From patchwork Mon Jun 11 10:13:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9182 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 01DCA23E4F for ; Mon, 11 Jun 2012 10:25:19 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id A221DA188AA for ; Mon, 11 Jun 2012 10:25:19 +0000 (UTC) Received: by yhpp61 with SMTP id p61so2570596yhp.11 for ; Mon, 11 Jun 2012 03:25:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=yzq6yIgw4EjmEhVv8TDX8bEeNY78D4vRvDhzwE0Uhzk=; b=nJWpNvbfz7GRFiVB+dBRjDdUDu0eqUcEZelTDY1vmCV0n56ohKaEF41ePHKE99t7hO LyAxf0AJPnGldHVyp9fsqTlPWuZJF3AQRDRT6Sy8iS8DwdBZYmUbvZsUyALgjZIUN25e yDiZAyQIb0qNkF5HgppaBHWeq6GEw1ajqFfQmPvU7/FE8aOXRAnMKv05Ww1Wte21Jv96 xBzVtEUQ0V33Ll3AVkWKgOQSSWSMT4+p1qqhdJhfgTEjsxEdUCumpjbFEb9dWTcQgrli 5IbkdmA6M+dYXbMcL9X9SkE2JYK7ocnh3h+YXhwDHGgRlTzczuqBFBGOmw0sfQoMgWfb iw7Q== Received: by 10.50.163.99 with SMTP id yh3mr5804034igb.53.1339410318643; Mon, 11 Jun 2012 03:25:18 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp99237ibb; Mon, 11 Jun 2012 03:25:18 -0700 (PDT) Received: by 10.68.194.4 with SMTP id hs4mr9720989pbc.128.1339410317557; Mon, 11 Jun 2012 03:25:17 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id sp1si9768196pbc.80.2012.06.11.03.25.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jun 2012 03:25:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by danh15 with SMTP id h15so6218623dan.37 for ; Mon, 11 Jun 2012 03:25:16 -0700 (PDT) Received: by 10.68.222.163 with SMTP id qn3mr25243404pbc.135.1339410316569; Mon, 11 Jun 2012 03:25:16 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id io2sm18030423pbc.24.2012.06.11.03.25.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jun 2012 03:25:15 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: t.stanislaws@samsung.com, k.debski@samsung.com, s.nawrocki@samsung.com, snjw23@gmail.com, kyungmin.park@samsung.com, mchehab@infradead.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/3] [media] s5p-tv: Replace printk with pr_* functions Date: Mon, 11 Jun 2012 15:43:52 +0530 Message-Id: <1339409634-13657-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQlaQf9etNw4opPVF2d8+J9WU717cdH/Il10EvBTNjFbFz6Ix/kpzXodd9cd4UxKKJ661nhs Replace printk with pr_* functions to silence checkpatch warnings. Signed-off-by: Sachin Kamat Acked-by: Sylwester Nawrocki --- drivers/media/video/s5p-tv/hdmi_drv.c | 6 ++++-- drivers/media/video/s5p-tv/mixer_drv.c | 6 +++--- drivers/media/video/s5p-tv/mixer_video.c | 4 +++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/media/video/s5p-tv/hdmi_drv.c b/drivers/media/video/s5p-tv/hdmi_drv.c index 20cb6ee..8a9cf43 100644 --- a/drivers/media/video/s5p-tv/hdmi_drv.c +++ b/drivers/media/video/s5p-tv/hdmi_drv.c @@ -11,6 +11,8 @@ * or (at your option) any later version */ +#define pr_fmt(fmt) "s5p-tv (hdmi_drv): " fmt + #ifdef CONFIG_VIDEO_SAMSUNG_S5P_HDMI_DEBUG #define DEBUG #endif @@ -161,12 +163,12 @@ static irqreturn_t hdmi_irq_handler(int irq, void *dev_data) intc_flag = hdmi_read(hdev, HDMI_INTC_FLAG); /* clearing flags for HPD plug/unplug */ if (intc_flag & HDMI_INTC_FLAG_HPD_UNPLUG) { - printk(KERN_INFO "unplugged\n"); + pr_info("unplugged\n"); hdmi_write_mask(hdev, HDMI_INTC_FLAG, ~0, HDMI_INTC_FLAG_HPD_UNPLUG); } if (intc_flag & HDMI_INTC_FLAG_HPD_PLUG) { - printk(KERN_INFO "plugged\n"); + pr_info("plugged\n"); hdmi_write_mask(hdev, HDMI_INTC_FLAG, ~0, HDMI_INTC_FLAG_HPD_PLUG); } diff --git a/drivers/media/video/s5p-tv/mixer_drv.c b/drivers/media/video/s5p-tv/mixer_drv.c index edca065..a15ca05 100644 --- a/drivers/media/video/s5p-tv/mixer_drv.c +++ b/drivers/media/video/s5p-tv/mixer_drv.c @@ -461,10 +461,10 @@ static struct platform_driver mxr_driver __refdata = { static int __init mxr_init(void) { int i, ret; - static const char banner[] __initconst = KERN_INFO + static const char banner[] __initconst = "Samsung TV Mixer driver, " "(c) 2010-2011 Samsung Electronics Co., Ltd.\n"; - printk(banner); + pr_info("%s\n", banner); /* Loading auxiliary modules */ for (i = 0; i < ARRAY_SIZE(mxr_output_conf); ++i) @@ -472,7 +472,7 @@ static int __init mxr_init(void) ret = platform_driver_register(&mxr_driver); if (ret != 0) { - printk(KERN_ERR "registration of MIXER driver failed\n"); + pr_err("s5p-tv: registration of MIXER driver failed\n"); return -ENXIO; } diff --git a/drivers/media/video/s5p-tv/mixer_video.c b/drivers/media/video/s5p-tv/mixer_video.c index 33fde2a..b17409b 100644 --- a/drivers/media/video/s5p-tv/mixer_video.c +++ b/drivers/media/video/s5p-tv/mixer_video.c @@ -11,6 +11,8 @@ * or (at your option) any later version */ +#define pr_fmt(fmt) "s5p-tv (mixer): " fmt + #include "mixer.h" #include @@ -1036,7 +1038,7 @@ void mxr_base_layer_release(struct mxr_layer *layer) static void mxr_vfd_release(struct video_device *vdev) { - printk(KERN_INFO "video device release\n"); + pr_info("video device release\n"); } struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev,