From patchwork Thu Sep 27 20:08:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11789 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 AB19624140 for ; Thu, 27 Sep 2012 20:09:42 +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 521B9A18968 for ; Thu, 27 Sep 2012 20:09:42 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so5234801iej.11 for ; Thu, 27 Sep 2012 13:09:42 -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 :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=1zCz6293Q6FOU1LvrGHDzYS/64nKay5GLtBLetgLAa4=; b=PPwMKvqZz/RPszDUfdW3mTQCv6tzzRlxUXJd4Qt5QH+Hekt4MlKZyz4swxq7TXmIno ReP2H4f0EkRY7HDteAkVMOfWkOJsJC5NVolMiBnbu6KMyFufnVD12rNxFgeUMjGHQxmc fb6B40jepo5tjvAhjwsriZdsWb4rglt3Xcah8ux89xdsjbkxcZtjESLyr4wLsSmoL5QI aOubNQE79K11gPajxO+430Vno9DCvv8ufMaqO8U+6XdNE5kfXA3VqfZM0n2mCDXRiRvJ ts9frfrCsSmQYh5uWJ3pt4woAxuvqLYe/2vY9Hy0YrDmm+QbNW8C7MNbx0Rcj88jAyHB jnHw== Received: by 10.50.7.212 with SMTP id l20mr4641313iga.43.1348776582075; Thu, 27 Sep 2012 13:09:42 -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.232 with SMTP id ex8csp436295igc; Thu, 27 Sep 2012 13:09:41 -0700 (PDT) Received: by 10.68.189.70 with SMTP id gg6mr14547775pbc.125.1348776581406; Thu, 27 Sep 2012 13:09:41 -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 pi9si5467641pbb.12.2012.09.27.13.09.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 13:09:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of mathieu.poirier@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 mathieu.poirier@linaro.org) smtp.mail=mathieu.poirier@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md4so1686045pbc.37 for ; Thu, 27 Sep 2012 13:09:41 -0700 (PDT) Received: by 10.66.85.167 with SMTP id i7mr12171594paz.8.1348776581182; Thu, 27 Sep 2012 13:09:41 -0700 (PDT) Received: from localhost.localdomain (S0106002369de4dac.cg.shawcable.net. [70.73.24.112]) by mx.google.com with ESMTPS id sa2sm1587890pbc.4.2012.09.27.13.09.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 13:09:39 -0700 (PDT) From: mathieu.poirier@linaro.org To: patches@linaro.org Subject: [PATCH 16/57] power: bm remove superfluous BTEMP thermal comp. Date: Thu, 27 Sep 2012 14:08:33 -0600 Message-Id: <1348776554-10019-17-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1348776554-10019-1-git-send-email-mathieu.poirier@linaro.org> References: <1348776554-10019-1-git-send-email-mathieu.poirier@linaro.org> X-Gm-Message-State: ALoCoQkmUjhTE+EO/7PkQMllLoyRROLkA/JBZwYXEXHqKUnxpcVg3stJ/ICdvosAq4z1EQDgWG9R From: Hakan Berg BTEMP thermal compensation factor times 10 is applied in two places, probe and get_property. Removed from probe. Signed-off-by: Hakan Berg Signed-off-by: Mathieu Poirier Reviewed-by: Karl KOMIEROWSKI --- drivers/power/ab8500_btemp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/ab8500_btemp.c b/drivers/power/ab8500_btemp.c index 04f9dec..74cddba 100644 --- a/drivers/power/ab8500_btemp.c +++ b/drivers/power/ab8500_btemp.c @@ -1026,8 +1026,8 @@ static int __devinit ab8500_btemp_probe(struct platform_device *pdev) ab8500_btemp_periodic_work); /* Set BTEMP thermal limits. Low and Med are fixed */ - di->btemp_ranges.btemp_low_limit = BTEMP_THERMAL_LOW_LIMIT * 10; - di->btemp_ranges.btemp_med_limit = BTEMP_THERMAL_MED_LIMIT * 10; + di->btemp_ranges.btemp_low_limit = BTEMP_THERMAL_LOW_LIMIT; + di->btemp_ranges.btemp_med_limit = BTEMP_THERMAL_MED_LIMIT; ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER, AB8500_BTEMP_HIGH_TH, &val);