From patchwork Fri Feb 15 12:44:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 14852 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 C3DC123E2E for ; Fri, 15 Feb 2013 12:46:00 +0000 (UTC) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by fiordland.canonical.com (Postfix) with ESMTP id 77816A18715 for ; Fri, 15 Feb 2013 12:46:00 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so2133746vba.27 for ; Fri, 15 Feb 2013 04:46:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=Z7+E1NF3GLxeSJ1dVrXalM5MV2y+2Qb4v85SWrY94EY=; b=MyOoCh/WEMXJgulVs43+7hBDNzeZIO3pityRNRsbCItMteGTExfHghcOPZ1Oonj/ym RUAutHL1Kgpk8V36SMBHr3GC4OrNmFoFA9NrfkTWErC3qZ3VT3ld3LIylLnl5EpMqlMB xElpGYJ40ydC3h5e5lxDG3ZeVjXgRdFbnQyfq/8gqo0ElWys2wAJSNmR5NilkRw3xi2E FgV1XZUE7mS5eEkEZs1imkIqITSFEU9iBKSSOxtPaN1VrH7eVYSX3uILwozp6Nf/FUPk xELdbPsDTcKP1N6wQD25pEnpkG9xVD6lXARTiBwnKw6EGgizbTODaczsrYoesQu1CwLL DqKA== X-Received: by 10.220.240.141 with SMTP id la13mr2838110vcb.39.1360932359936; Fri, 15 Feb 2013 04:45:59 -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.221.4.5 with SMTP id oa5csp10824vcb; Fri, 15 Feb 2013 04:45:59 -0800 (PST) X-Received: by 10.194.108.229 with SMTP id hn5mr4084399wjb.8.1360932357973; Fri, 15 Feb 2013 04:45:57 -0800 (PST) Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by mx.google.com with ESMTPS id h16si18135706wjr.216.2013.02.15.04.45.57 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 04:45:57 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.48 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.48; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.48 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wg0-f48.google.com with SMTP id 16so2705656wgi.3 for ; Fri, 15 Feb 2013 04:45:57 -0800 (PST) X-Received: by 10.180.87.98 with SMTP id w2mr3828967wiz.30.1360932356352; Fri, 15 Feb 2013 04:45:56 -0800 (PST) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPS id bs6sm5133904wib.4.2013.02.15.04.45.54 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 04:45:55 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, cbouatmailru@gmail.com, sameo@linux.intel.com, Lee Jones Subject: [PATCH 07/40] ab8500-charger: Trivial coding style changes Date: Fri, 15 Feb 2013 12:44:37 +0000 Message-Id: <1360932310-30065-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1360932310-30065-1-git-send-email-lee.jones@linaro.org> References: <1360932310-30065-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQmL3YMjhi5ioGYzzJ50OKIWmGB1mIDcRNzVYk7gPseHEWEpyfqeeWtNZWIF/pOZ6yqfaJJf Enforce the white space character after 'if'. Signed-off-by: Lee Jones --- drivers/power/ab8500_charger.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/power/ab8500_charger.c b/drivers/power/ab8500_charger.c index fd3fa2b..dcd3c6f 100644 --- a/drivers/power/ab8500_charger.c +++ b/drivers/power/ab8500_charger.c @@ -3152,10 +3152,10 @@ static int ab8500_charger_remove(struct platform_device *pdev) destroy_workqueue(di->charger_wq); flush_scheduled_work(); - if(di->usb_chg.enabled) + if (di->usb_chg.enabled) power_supply_unregister(&di->usb_chg.psy); #if !defined(CONFIG_CHARGER_PM2301) - if(di->ac_chg.enabled) + if (di->ac_chg.enabled) power_supply_unregister(&di->ac_chg.psy); #endif platform_set_drvdata(pdev, NULL); @@ -3331,7 +3331,7 @@ static int ab8500_charger_probe(struct platform_device *pdev) } /* Register AC charger class */ - if(di->ac_chg.enabled) { + if (di->ac_chg.enabled) { ret = power_supply_register(di->dev, &di->ac_chg.psy); if (ret) { dev_err(di->dev, "failed to register AC charger\n"); @@ -3340,7 +3340,7 @@ static int ab8500_charger_probe(struct platform_device *pdev) } /* Register USB charger class */ - if(di->usb_chg.enabled) { + if (di->usb_chg.enabled) { ret = power_supply_register(di->dev, &di->usb_chg.psy); if (ret) { dev_err(di->dev, "failed to register USB charger\n"); @@ -3425,10 +3425,10 @@ free_irq: put_usb_phy: usb_put_phy(di->usb_phy); free_usb: - if(di->usb_chg.enabled) + if (di->usb_chg.enabled) power_supply_unregister(&di->usb_chg.psy); free_ac: - if(di->ac_chg.enabled) + if (di->ac_chg.enabled) power_supply_unregister(&di->ac_chg.psy); free_charger_wq: destroy_workqueue(di->charger_wq);