From patchwork Fri Aug 10 04:42:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10664 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 639DA23E57 for ; Fri, 10 Aug 2012 04:43:48 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id 294A1A187F0 for ; Fri, 10 Aug 2012 04:43:48 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id eq6so390896obc.11 for ; Thu, 09 Aug 2012 21:43:47 -0700 (PDT) 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=0OtxIwCeoq6MhhrELL7cP+CJsDJ5x5JAa16SsI6EvFE=; b=WTU3qKpYKdseqCxMfoHYhbSR1sS1iDx0lzURa34epUb7yEW/qmHf+DEOqh4dQ2VJZ1 Fvd1TWrvyRe9BGog0sWP8ddRMHc55GRy69QAjEomlX2OiXNqZZS+R+t4qVOdkcJpNU2G 9dJnkagm1mui76mBP1njoBv6gPlxO5efO2a5wxPzO9Obsu2aZNaQz8YYJQUsvxLDAjCw p4vXcnCmvSmBt0r1OP1jxnNRG+8KOKqvOIy8cHPHNz6S2mBNJnot4wmQm7jOMxrIx4cL hu35qlfbtb1BhYnPcVEch75d6f0Amu8s4pnm2nHEfnnUqv6eOEpmEmsEbIoYNSHzVyEg Myzg== Received: by 10.50.94.133 with SMTP id dc5mr640929igb.16.1344573827864; Thu, 09 Aug 2012 21:43:47 -0700 (PDT) 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.184.200 with SMTP id ew8csp41572igc; Thu, 9 Aug 2012 21:43:47 -0700 (PDT) Received: by 10.68.226.102 with SMTP id rr6mr9285102pbc.99.1344573827175; Thu, 09 Aug 2012 21:43:47 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id px5si6356752pbb.82.2012.08.09.21.43.47 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 21:43:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 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-pb0-f50.google.com with SMTP id md12so2314562pbc.37 for ; Thu, 09 Aug 2012 21:43:47 -0700 (PDT) Received: by 10.68.189.104 with SMTP id gh8mr9227537pbc.152.1344573826922; Thu, 09 Aug 2012 21:43:46 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id nv6sm2527383pbc.42.2012.08.09.21.43.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 21:43:46 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: thierry.reding@avionic-design.de, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/2] pwm: core: Fix coding style issues Date: Fri, 10 Aug 2012 10:12:10 +0530 Message-Id: <1344573730-21907-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1344573730-21907-1-git-send-email-sachin.kamat@linaro.org> References: <1344573730-21907-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlaeOrTlb0kb1KoJtoGo1LwTCL1LcKV9lGyO8XunPAdFSFVRBzeJON6zM36oDopwFHTfhPQ Fixes the following: WARNING: line over 80 characters ERROR: spaces required around that ':' (ctx:VxW) WARNING: Prefer pr_warn(... to pr_warning(... Signed-off-by: Sachin Kamat --- drivers/pwm/core.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index efc20f8..929be13 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -130,7 +130,7 @@ static int pwm_device_request(struct pwm_device *pwm, const char *label) } static struct pwm_device *of_pwm_simple_xlate(struct pwm_chip *pc, - const struct of_phandle_args *args) + const struct of_phandle_args *args) { struct pwm_device *pwm; @@ -549,7 +549,7 @@ void __init pwm_add_table(struct pwm_lookup *table, size_t num) struct pwm_device *pwm_get(struct device *dev, const char *con_id) { struct pwm_device *pwm = ERR_PTR(-EPROBE_DEFER); - const char *dev_id = dev ? dev_name(dev): NULL; + const char *dev_id = dev ? dev_name(dev) : NULL; struct pwm_chip *chip = NULL; unsigned int index = 0; unsigned int best = 0; @@ -631,7 +631,7 @@ void pwm_put(struct pwm_device *pwm) mutex_lock(&pwm_lock); if (!test_and_clear_bit(PWMF_REQUESTED, &pwm->flags)) { - pr_warning("PWM device already freed\n"); + pr_warn("PWM device already freed\n"); goto out; }