From patchwork Tue Apr 30 06:16:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2503391 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 2DA04DF5B1 for ; Tue, 30 Apr 2013 06:29:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753331Ab3D3G3V (ORCPT ); Tue, 30 Apr 2013 02:29:21 -0400 Received: from mail-pb0-f43.google.com ([209.85.160.43]:41138 "EHLO mail-pb0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753043Ab3D3G3U (ORCPT ); Tue, 30 Apr 2013 02:29:20 -0400 Received: by mail-pb0-f43.google.com with SMTP id ma3so110042pbc.16 for ; Mon, 29 Apr 2013 23:29:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=4acNUz2AWZo9b4bF5G8Hm2C/kYzEL4Lyi2Ts2WznowA=; b=RUidd/e9cmXswWfzab2Vo+zj3syLJiQyq+30yhqFNKxgWBjZvTgpx309Vz+n/X0Lpa 1GR2aX/ZMtKpgwSH++wlORkrjHxeKX0MJPhXHJBo9Thyc7cpZlmow/eJt6L0eebnwEjY 7Vk4uP8COYbjkOW0MdiA3y/LLdQ6C+zhxO8iOkATG8SQjgcmrZmKT90b0LSmrmFhMbNw S4NdRVbsPFbaLVNOGbC2Cau5QnwHbHecu9yzgIRo+gNL3zjv+z5lcjCdbGoOelVNWXJa 6qL7s5Nk1qSeIwHekefcyTs4aJKc2v47hjK8s9QycmgEKiMGyi+9eIYpPARyBsTg6ZQJ 3liA== X-Received: by 10.68.50.193 with SMTP id e1mr76181530pbo.184.1367303359978; Mon, 29 Apr 2013 23:29:19 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id lq5sm1934904pab.19.2013.04.29.23.29.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 23:29:19 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 4/4] [media] s3c-camif: Use dev_info instead of printk Date: Tue, 30 Apr 2013 11:46:21 +0530 Message-Id: <1367302581-15478-4-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367302581-15478-1-git-send-email-sachin.kamat@linaro.org> References: <1367302581-15478-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkX5ZSrZ7QAuCdYzXWcJ5KMUGH1OkC7TruCl8PmqjFYdq75/MrrMAKrmHmiE0dQEiPpYRhE Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org dev_info is preferred to printk. Silences the related checkpatch warning. WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... Signed-off-by: Sachin Kamat --- drivers/media/platform/s3c-camif/camif-regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s3c-camif/camif-regs.c b/drivers/media/platform/s3c-camif/camif-regs.c index 7b22d6c..a9e3b16 100644 --- a/drivers/media/platform/s3c-camif/camif-regs.c +++ b/drivers/media/platform/s3c-camif/camif-regs.c @@ -601,6 +601,6 @@ void camif_hw_dump_regs(struct camif_dev *camif, const char *label) pr_info("--- %s ---\n", label); for (i = 0; i < ARRAY_SIZE(registers); i++) { u32 cfg = readl(camif->io_base + registers[i].offset); - printk(KERN_INFO "%s:\t0x%08x\n", registers[i].name, cfg); + dev_info(camif->dev, "%s:\t0x%08x\n", registers[i].name, cfg); } }