From patchwork Mon Nov 26 04:09:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 13172 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 88D3523E17 for ; Mon, 26 Nov 2012 04:16:28 +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 39D28A1834A for ; Mon, 26 Nov 2012 04:16:28 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so4007790ieb.11 for ; Sun, 25 Nov 2012 20:16:28 -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=lJ14/g5SN4OFmCHvKrZzteQq8R5YkYmoIeKaj4bQuuI=; b=mQlSny5sattAdbJ83OJon+YKW41VvLFDs1SRukB1DD7LWySZuTVBhN0zWlxyhqIWpM qIW38blo7EhrhH3+6RdZRx9o3+Ds8LuQzQJpxVO8ReFFS2Awz4mhZ3/dbRWZqRgSUgCZ nfet8McrORfXbKV9QoYWISDcSK3wkh3gau1ne4S29Aol+0wb9a8FV7CJPFYBl8IRbxCE vUjQ5qp6ysDRTImS/hXMQwy0WQXfTlKGCCIF+pmiblkYImkladAcZ0mNHcku4wiDrE96 ANgwpb6zM9jr43i2IXWicJmpIoE75FwIiMQDDjGhvvDchoq8zgPeeK3Ipvll/5b8hLVt +awQ== Received: by 10.50.213.34 with SMTP id np2mr9769221igc.57.1353903387796; Sun, 25 Nov 2012 20:16:27 -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 n20csp197683igt; Sun, 25 Nov 2012 20:16:27 -0800 (PST) Received: by 10.68.230.66 with SMTP id sw2mr34034082pbc.119.1353903387282; Sun, 25 Nov 2012 20:16:27 -0800 (PST) Received: from mail-da0-f45.google.com (mail-da0-f45.google.com [209.85.210.45]) by mx.google.com with ESMTPS id qs10si17826441pbb.280.2012.11.25.20.16.27 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:16:27 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.45 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.45; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.45 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-f45.google.com with SMTP id w4so2551518dam.32 for ; Sun, 25 Nov 2012 20:16:27 -0800 (PST) Received: by 10.66.86.101 with SMTP id o5mr29481055paz.15.1353903387025; Sun, 25 Nov 2012 20:16:27 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id yi9sm8036353pbc.39.2012.11.25.20.16.24 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:16:26 -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 04/16] leds: led-class: Fix checkpatch warning Date: Mon, 26 Nov 2012 09:39:32 +0530 Message-Id: <1353902984-10728-5-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: ALoCoQkTz61vnd9qdQ7mc5bNnt9djF/8y07oRRELT0nI2KtsAfchZpX53GLJBPn3A4J++17FZV3f Fixes the following checkpatch warning: WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ... FILE: leds/led-class.c:214: printk(KERN_DEBUG "Registered led device: %s\n", Signed-off-by: Sachin Kamat --- drivers/leds/led-class.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c index 48cce18..a20752f 100644 --- a/drivers/leds/led-class.c +++ b/drivers/leds/led-class.c @@ -211,7 +211,7 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev) led_trigger_set_default(led_cdev); #endif - printk(KERN_DEBUG "Registered led device: %s\n", + dev_dbg(parent, "Registered led device: %s\n", led_cdev->name); return 0;