From patchwork Fri Aug 10 11:11:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10672 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 5E4DC23E56 for ; Fri, 10 Aug 2012 11:12:53 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 0F2C1A18854 for ; Fri, 10 Aug 2012 11:12:52 +0000 (UTC) Received: by yhpp61 with SMTP id p61so1429414yhp.11 for ; Fri, 10 Aug 2012 04:12:52 -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:x-gm-message-state; bh=2DLVATl6PM2gMOBojJNeXNBh7WDD4fyryDnhui8bn5c=; b=ZkoQd5YZ/gKnRcekp3U4qiDL/NcDeuilqXtx1G+HO4IaUBW74zyRwxZE6SE6gYrWtg SjXnBoxWgDNS0T5IrGTvFcNjvFKEBoDAdH6tS1gYlw0tsCh23LkjlhXhAYXhLehfFI4p ZwTVSdXYIUfbnoSx91TrOVSh2CMOwjlDUOam8rrisRpCRd+VjfrrXpiNt2JhVM+xDmnE GTLt84TA9jezOPpo81LnxDTFxJqR/F70ibuBHK8l+f695UyXYe9EG3RbLe9exTmg9nkp u+n5GAGKtp4ldf6bSmNuRpMaTwODbc+I8KMLjPtdIOU9emsG2511vC638hOXHnkvKGRP ckHQ== Received: by 10.50.170.3 with SMTP id ai3mr1395698igc.9.1344597172367; Fri, 10 Aug 2012 04:12:52 -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 ew8csp54974igc; Fri, 10 Aug 2012 04:12:51 -0700 (PDT) Received: by 10.68.231.130 with SMTP id tg2mr11756990pbc.70.1344597171218; Fri, 10 Aug 2012 04:12:51 -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 ot8si7936805pbb.219.2012.08.10.04.12.50 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Aug 2012 04:12:51 -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 pbcmd12 with SMTP id md12so2887886pbc.37 for ; Fri, 10 Aug 2012 04:12:50 -0700 (PDT) Received: by 10.68.195.202 with SMTP id ig10mr11824247pbc.37.1344597170807; Fri, 10 Aug 2012 04:12:50 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id wh7sm3162166pbc.33.2012.08.10.04.12.45 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Aug 2012 04:12:50 -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][Re-send] pwm: core: Fix coding style issues Date: Fri, 10 Aug 2012 16:41:13 +0530 Message-Id: <1344597073-14261-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkO0rzANzPxsFFCiCduFUx5NgyO5jINtLwDIEnlK4tMxBlJV/SxDk2ChHXt1Z+gULeDLP3o 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 | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index ecb7690..1659537 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -129,8 +129,8 @@ static int pwm_device_request(struct pwm_device *pwm, const char *label) return 0; } -static struct pwm_device *of_pwm_simple_xlate(struct pwm_chip *pc, - const struct of_phandle_args *args) +static struct pwm_device * +of_pwm_simple_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) { struct pwm_device *pwm; @@ -527,7 +527,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; @@ -609,7 +609,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; }