From patchwork Tue Nov 6 12:34:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Toshiaki Yamane X-Patchwork-Id: 1704261 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 1C745DF230 for ; Tue, 6 Nov 2012 12:34:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751208Ab2KFMeM (ORCPT ); Tue, 6 Nov 2012 07:34:12 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:53156 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751118Ab2KFMeJ (ORCPT ); Tue, 6 Nov 2012 07:34:09 -0500 Received: by mail-pa0-f46.google.com with SMTP id hz1so305738pad.19 for ; Tue, 06 Nov 2012 04:34:08 -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:in-reply-to:references; bh=P6zvYa4+Lmn+hv0NfKMl72NKvDC3c3DJHd/DW9HvJqQ=; b=yJ9QrYvnO6gLA1D148Hu4TXqZozOweayf/XrYmJB0jHzWIQSc8QtYlPC+50genljhs dmn5/anU6DN45DFox+l0EI613mWYYabe5JdfLoyrrxzueX01whUf39OuYFm9QHAojGWN AZQwK1naUb29NEQOZLwd5zks91DOxUqKCQ51hdk9XPHA1wSyLlYJbwpGc4eVxsTXZpvH XKCRQcG9gog5AUY48b1Om028K3duIBjYRI2znJZdlbKCGNPTSP+xCwXz043WEpPq9S5g 2vnc+eHLXJQZ9rYyh6ZG/HB/2O7GyJFD1Tv6MlQOJ9cXrizIRzND4TugYJm+ioqwpivJ CBYQ== Received: by 10.66.88.133 with SMTP id bg5mr2098446pab.80.1352205248605; Tue, 06 Nov 2012 04:34:08 -0800 (PST) Received: from localhost (softbank220057059032.bbtec.net. [220.57.59.32]) by mx.google.com with ESMTPS id gv9sm12298756pbc.21.2012.11.06.04.34.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 04:34:07 -0800 (PST) From: YAMANE Toshiaki To: Mauro Carvalho Chehab Cc: Greg Kroah-Hartman , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, YAMANE Toshiaki Subject: [PATCH 2/2] Staging/media: Use dev_ printks in go7007/wis-tw9903.c Date: Tue, 6 Nov 2012 21:34:02 +0900 Message-Id: <1352205243-5829-1-git-send-email-yamanetoshi@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352205206-5794-1-git-send-email-yamanetoshi@gmail.com> References: <1352205206-5794-1-git-send-email-yamanetoshi@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org fixed below checkpatch warning. - WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ... - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: YAMANE Toshiaki --- drivers/staging/media/go7007/wis-tw9903.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/staging/media/go7007/wis-tw9903.c b/drivers/staging/media/go7007/wis-tw9903.c index 3821cd5..246ce17 100644 --- a/drivers/staging/media/go7007/wis-tw9903.c +++ b/drivers/staging/media/go7007/wis-tw9903.c @@ -127,8 +127,8 @@ static int wis_tw9903_command(struct i2c_client *client, 0x06, 0xc0, /* reset device */ 0, 0, }; - printk(KERN_DEBUG "vscale is %04x, hscale is %04x\n", - vscale, hscale); + dev_dbg(&client->dev, "vscale is %04x, hscale is %04x\n", + vscale, hscale); /*write_regs(client, regs);*/ break; } @@ -287,12 +287,11 @@ static int wis_tw9903_probe(struct i2c_client *client, dec->hue = 0; i2c_set_clientdata(client, dec); - printk(KERN_DEBUG - "wis-tw9903: initializing TW9903 at address %d on %s\n", + dev_dbg(&client->dev, "initializing TW9903 at address %d on %s\n", client->addr, adapter->name); if (write_regs(client, initial_registers) < 0) { - printk(KERN_ERR "wis-tw9903: error initializing TW9903\n"); + dev_err(&client->dev, "error initializing TW9903\n"); kfree(dec); return -ENODEV; }