From patchwork Mon Nov 5 11:35:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Toshiaki Yamane X-Patchwork-Id: 1696391 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 8F74D3FCDE for ; Mon, 5 Nov 2012 11:35:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752905Ab2KELfM (ORCPT ); Mon, 5 Nov 2012 06:35:12 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:42627 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752143Ab2KELfL (ORCPT ); Mon, 5 Nov 2012 06:35:11 -0500 Received: by mail-pa0-f46.google.com with SMTP id hz1so3870002pad.19 for ; Mon, 05 Nov 2012 03:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=UT5Z2dAZiHfzibq7kpRu7VLhXphmsDGHqKJnu2/KctA=; b=RAuQJEnJtBh2yXGqShYpUnmywIznINIeZHGnWPS8VUOxVTd+ktQc+7YH2C/5bRO5Hn FGsvz55IOEou5jZUMNyyt6DAKZLQGp7237pw4AfbQIsRBcHwb0biFTL7Ls2eg6qDnHko 6wKh0DoHlRsPLerzH0Xkywh5CryzWWuB7wPylKy+iwvnvNHticnZL8X2X10Bsqpy7vKz g/8WYVuGpHJOtznhUFnUaV63Vrjl2MU8Ecc5HQMdXcwc2bDRtR9gBEgxGpl4BkEoTifL d2B2WYvx4EupMBcYKvWLspAhbrq9Jh2xaXXj9h8Mctbcq0NNKbjFid8qDMYNjtJzqR4z Fn0g== Received: by 10.66.76.9 with SMTP id g9mr27645917paw.17.1352115310910; Mon, 05 Nov 2012 03:35:10 -0800 (PST) Received: from localhost (softbank220057059032.bbtec.net. [220.57.59.32]) by mx.google.com with ESMTPS id ak10sm9573413pbd.24.2012.11.05.03.35.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Nov 2012 03:35:10 -0800 (PST) From: YAMANE Toshiaki To: Greg Kroah-Hartman , linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, YAMANE Toshiaki Subject: [PATCH] staging/media: Use dev_ or pr_ printks in go7007/go7007-i2c.c Date: Mon, 5 Nov 2012 20:35:06 +0900 Message-Id: <1352115306-8115-1-git-send-email-yamanetoshi@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org fixed below checkpatch warnings. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... - WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ... Signed-off-by: YAMANE Toshiaki --- drivers/staging/media/go7007/go7007-i2c.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/media/go7007/go7007-i2c.c b/drivers/staging/media/go7007/go7007-i2c.c index 6bc82aa..39456a3 100644 --- a/drivers/staging/media/go7007/go7007-i2c.c +++ b/drivers/staging/media/go7007/go7007-i2c.c @@ -60,10 +60,10 @@ static int go7007_i2c_xfer(struct go7007 *go, u16 addr, int read, #ifdef GO7007_I2C_DEBUG if (read) - printk(KERN_DEBUG "go7007-i2c: reading 0x%02x on 0x%02x\n", + dev_dbg(go->dev, "go7007-i2c: reading 0x%02x on 0x%02x\n", command, addr); else - printk(KERN_DEBUG + dev_dbg(go->dev, "go7007-i2c: writing 0x%02x to 0x%02x on 0x%02x\n", *data, command, addr); #endif @@ -85,7 +85,7 @@ static int go7007_i2c_xfer(struct go7007 *go, u16 addr, int read, msleep(100); } if (i == 10) { - printk(KERN_ERR "go7007-i2c: I2C adapter is hung\n"); + dev_err(go->dev, "go7007-i2c: I2C adapter is hung\n"); goto i2c_done; } @@ -119,7 +119,7 @@ static int go7007_i2c_xfer(struct go7007 *go, u16 addr, int read, msleep(100); } if (i == 10) { - printk(KERN_ERR "go7007-i2c: I2C adapter is hung\n"); + dev_err(go->dev, "go7007-i2c: I2C adapter is hung\n"); goto i2c_done; } @@ -216,7 +216,7 @@ int go7007_i2c_init(struct go7007 *go) go->i2c_adapter.dev.parent = go->dev; i2c_set_adapdata(&go->i2c_adapter, go); if (i2c_add_adapter(&go->i2c_adapter) < 0) { - printk(KERN_ERR + dev_err(go->dev, "go7007-i2c: error: i2c_add_adapter failed\n"); return -1; }