From patchwork Mon Nov 26 04:09:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 13179 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 C2DC623E17 for ; Mon, 26 Nov 2012 04:16:53 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 74E77A1834A for ; Mon, 26 Nov 2012 04:16:53 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so4007790ieb.11 for ; Sun, 25 Nov 2012 20:16:53 -0800 (PST) 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:in-reply-to:references :x-gm-message-state; bh=StkvrmYVyeI6lR3Y+VmpR/kh7/zUx9lVr5/CAMa0D7s=; b=kw1uqP+/GJ3M07lzdRoDoeTYwnj4Lmy57DFI4nsUJ+Qp6D4yRCDCoZ8vCqYoH/Gyqh VeC3M2HhoZhVMO7HjFflUOGz+M9NqPjuoNtjuFqPw63ThEQ0nBqdpsFcBhzzp9qHXlBk Skpa80Y2a8qfJ/W1yavFSpLQjU3wqUlvRsHyoN1hy8VS/mWdan89MmAK3HPET0MLtIxF j39U+427Lh+2uZh8HGMWvl+LwAXdbh9BHRHaivnMjno8ULa9oKmrCR2XtmlW9Hml4sF3 RT7+rO+F81p1H0Mz29WV6YQ3tB3aOfX0D8NU+uFWsEPAm4mk4OriwxFCoJD7Tna8PCRX hw/g== Received: by 10.43.46.2 with SMTP id um2mr8617895icb.18.1353903413202; Sun, 25 Nov 2012 20:16:53 -0800 (PST) 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.50.67.148 with SMTP id n20csp197728igt; Sun, 25 Nov 2012 20:16:52 -0800 (PST) Received: by 10.68.130.197 with SMTP id og5mr33737673pbb.138.1353903412748; Sun, 25 Nov 2012 20:16:52 -0800 (PST) Received: from mail-da0-f41.google.com (mail-da0-f41.google.com [209.85.210.41]) by mx.google.com with ESMTPS id f9si17390836paw.34.2012.11.25.20.16.52 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:16:52 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.41 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.41; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.41 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-da0-f41.google.com with SMTP id e20so3506152dak.14 for ; Sun, 25 Nov 2012 20:16:52 -0800 (PST) Received: by 10.68.132.196 with SMTP id ow4mr34488111pbb.49.1353903412519; Sun, 25 Nov 2012 20:16:52 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id yi9sm8036353pbc.39.2012.11.25.20.16.49 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:16:51 -0800 (PST) From: Sachin Kamat To: linux-leds@vger.kernel.org Cc: cooloney@gmail.com, rpurdie@rpsys.net, patches@linaro.org, sachin.kamat@linaro.org Subject: [PATCH 11/16] leds: leds-pca955x: Use dev_info instead of printk Date: Mon, 26 Nov 2012 09:39:39 +0530 Message-Id: <1353902984-10728-12-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1353902984-10728-1-git-send-email-sachin.kamat@linaro.org> References: <1353902984-10728-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlNNsFw/jzeXL45DROiT/Eo5lMHQJh4tS3V0AbblQXOv437d8KXHQjm4PEG2zxvAxUgR6ZK Fixes the following checkpatch warning: WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... Signed-off-by: Sachin Kamat --- drivers/leds/leds-pca955x.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/leds/leds-pca955x.c b/drivers/leds/leds-pca955x.c index aef3cf0..f1b36ad 100644 --- a/drivers/leds/leds-pca955x.c +++ b/drivers/leds/leds-pca955x.c @@ -277,7 +277,7 @@ static int __devinit pca955x_probe(struct i2c_client *client, return -ENODEV; } - printk(KERN_INFO "leds-pca955x: Using %s %d-bit LED driver at " + dev_info(&client->dev, "leds-pca955x: Using %s %d-bit LED driver at " "slave address 0x%02x\n", id->name, chip->bits, client->addr);