From patchwork Mon Nov 26 04:09:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 13177 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 5185423E17 for ; Mon, 26 Nov 2012 04:16:46 +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 F2A01A187CA for ; Mon, 26 Nov 2012 04:16:45 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so4007790ieb.11 for ; Sun, 25 Nov 2012 20:16:45 -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=9kre8mX3CIOskKijLvBlZXhbQXUIC9YkCvbRjS8WCz4=; b=MGEBpduPUVkpstjqBxtovPIim/52ax1Mh4k8vEwT7RqZANEfiTVfg90QW6lDSCAnq2 0XIgnGI0z6+E/mi/OzGaydvU9X68lAzRrZzKzqAPLxOI/MFKfShI4gzr2ab/aWfXzCIe 9fY4D5wTr3IklTwmkYJ+AJgLmvtodTn/rjW9jveV1f8fXVXS2ZX+petaN2K7pNh7yA+R Netug42WIpJTydgu8xumAb/8aed4xMXniC2QFS0sjOq9ZaZhaCDyn3QakWgn+4V9XsLa lIAiq0E568ZS5GlMn/cAAA7P3f0nx/HlezZpa+5xo/x165BKD0Hz4zwwPul32O54sYip N45Q== Received: by 10.50.173.34 with SMTP id bh2mr9699618igc.70.1353903405741; Sun, 25 Nov 2012 20:16:45 -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 n20csp197718igt; Sun, 25 Nov 2012 20:16:45 -0800 (PST) Received: by 10.68.223.230 with SMTP id qx6mr34259562pbc.159.1353903404821; Sun, 25 Nov 2012 20:16:44 -0800 (PST) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx.google.com with ESMTPS id o10si17398516paw.6.2012.11.25.20.16.44 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:16:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.43; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.43 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-pa0-f43.google.com with SMTP id fb10so6130318pad.16 for ; Sun, 25 Nov 2012 20:16:44 -0800 (PST) Received: by 10.66.77.196 with SMTP id u4mr29123077paw.84.1353903404556; Sun, 25 Nov 2012 20:16:44 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id yi9sm8036353pbc.39.2012.11.25.20.16.41 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:16:44 -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 09/16] leds: leds-lt3593: Fix checkpatch warnings Date: Mon, 26 Nov 2012 09:39:37 +0530 Message-Id: <1353902984-10728-10-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: ALoCoQmPcMzBRtU/X9CUKMgNrbnp+1z2lfddylE86WcecB+k0HkgZWfZLreLIYl7MhFhFtsYQ+wP Fixes the following type of checkpatch warnings: WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... Signed-off-by: Sachin Kamat --- drivers/leds/leds-lt3593.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/leds/leds-lt3593.c b/drivers/leds/leds-lt3593.c index 5ee6b8b..f415c20 100644 --- a/drivers/leds/leds-lt3593.c +++ b/drivers/leds/leds-lt3593.c @@ -89,7 +89,7 @@ static int __devinit create_lt3593_led(const struct gpio_led *template, /* skip leds on GPIOs that aren't available */ if (!gpio_is_valid(template->gpio)) { - printk(KERN_INFO "%s: skipping unavailable LT3593 LED at gpio %d (%s)\n", + dev_info(parent, "%s: skipping unavailable LT3593 LED at gpio %d (%s)\n", KBUILD_MODNAME, template->gpio, template->name); return 0; } @@ -117,7 +117,7 @@ static int __devinit create_lt3593_led(const struct gpio_led *template, if (ret < 0) return ret; - printk(KERN_INFO "%s: registered LT3593 LED '%s' at GPIO %d\n", + dev_info(parent, "%s: registered LT3593 LED '%s' at GPIO %d\n", KBUILD_MODNAME, template->name, template->gpio); return 0;