From patchwork Tue Nov 6 19:39:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Toshiaki Yamane X-Patchwork-Id: 1706161 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 B28ECDFE75 for ; Tue, 6 Nov 2012 19:40:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752584Ab2KFTkD (ORCPT ); Tue, 6 Nov 2012 14:40:03 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:35242 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254Ab2KFTkB (ORCPT ); Tue, 6 Nov 2012 14:40:01 -0500 Received: by mail-pb0-f46.google.com with SMTP id rr4so634015pbb.19 for ; Tue, 06 Nov 2012 11:40:00 -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=WWU1JRY5ek70BQp5sy/oeV6Tqa6SNoSXK35WX/i67kM=; b=ArQpEWEZ5EueSQfO2UAnxwR31A+fcqgRddCBjHulb02WcyF4veAKLyCuR1l4NilLfq lCrEiBvqsnQ7Zb+em23qyhnhhM3A8OX7oygQaaW6miZtr6fD6PgrzN4A7yNyL8ILqXbU SiRmXcvK/1Ly6Yt526iuUFzK3n2kxvTz1D6pX3tdsFHcqaMtGv+gtqlLHs25O3WCXf+C wFO7sf/zqst/6Rz8nSnkZqawhPzZrsMiBpU5iquk1D2mKu9WKqbZ0yF+XAwKHe1p0R/V PJdjiNBCuau6UIoJukaiW731on/Op8keGrcS0KbmE2KbgNA+JVUNEBhPu0BclnWflEFL 0wHw== Received: by 10.68.253.230 with SMTP id ad6mr6481579pbd.84.1352230800696; Tue, 06 Nov 2012 11:40:00 -0800 (PST) Received: from localhost (softbank220057059032.bbtec.net. [220.57.59.32]) by mx.google.com with ESMTPS id b6sm12899227pav.33.2012.11.06.11.39.58 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 11:40:00 -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] Staging/media: Use dev_ printks in go7007/wis-uda1342.c Date: Wed, 7 Nov 2012 04:39:54 +0900 Message-Id: <1352230794-9406-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 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-uda1342.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/go7007/wis-uda1342.c b/drivers/staging/media/go7007/wis-uda1342.c index 0127be2..48e1407 100644 --- a/drivers/staging/media/go7007/wis-uda1342.c +++ b/drivers/staging/media/go7007/wis-uda1342.c @@ -47,8 +47,8 @@ static int wis_uda1342_command(struct i2c_client *client, write_reg(client, 0x00, 0x1241); /* select input 1 */ break; default: - printk(KERN_ERR "wis-uda1342: input %d not supported\n", - *inp); + dev_err(&client->dev, "input %d not supported\n", + *inp); break; } break; @@ -67,8 +67,7 @@ static int wis_uda1342_probe(struct i2c_client *client, if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA)) return -ENODEV; - printk(KERN_DEBUG - "wis-uda1342: initializing UDA1342 at address %d on %s\n", + dev_dbg(&client->dev, "initializing UDA1342 at address %d on %s\n", client->addr, adapter->name); write_reg(client, 0x00, 0x8000); /* reset registers */