From patchwork Fri Jan 11 13:13:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13985 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 DE1AE23E27 for ; Fri, 11 Jan 2013 13:13:44 +0000 (UTC) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by fiordland.canonical.com (Postfix) with ESMTP id 8FB4CA19328 for ; Fri, 11 Jan 2013 13:13:44 +0000 (UTC) Received: by mail-vb0-f41.google.com with SMTP id l22so1389002vbn.14 for ; Fri, 11 Jan 2013 05:13:44 -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=W2SASIvwJudtLU2vhT5aiACpwWhkJkU93IthbpetsSM=; b=VTRpp/I0eMS10bPYjKKP8+2TTpQWNgoyphgG9KTfgkIiwpccRxkp4HpCvGxQRyn92V 8vi6mEz4WMpqycviu8i+zrPfr/S7clZzl7RQFsqKR64nXSBCAn9P9B4PkAWc7hhl7zGR GeVyxoFstKLkDjg2J3MnmxrUzuoDaOO+e6i4n5HwZZcBi2HDX19F9RscaLBWctUXG+iR tkoaoppAkPvhHLld602NYhiefYvYlPV4h+m4Wpmy0Ne4LNzjuxuk4vHm/X0HW4MsBqeT boNV5U0An6ju4AOrF8LzmzPIbScfK1/ouH4I/swsSER6TYByDUfOB70yVyE1T9nxGwYC Z8ng== X-Received: by 10.220.8.18 with SMTP id f18mr91928972vcf.14.1357910023972; Fri, 11 Jan 2013 05:13:43 -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.58.145.101 with SMTP id st5csp111245veb; Fri, 11 Jan 2013 05:13:43 -0800 (PST) X-Received: by 10.180.14.2 with SMTP id l2mr15364524wic.2.1357910023067; Fri, 11 Jan 2013 05:13:43 -0800 (PST) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id l1si8681287wjq.29.2013.01.11.05.13.42 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 05:13:43 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.172 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-wi0-f172.google.com with SMTP id o1so1927750wic.5 for ; Fri, 11 Jan 2013 05:13:42 -0800 (PST) X-Received: by 10.194.20.231 with SMTP id q7mr120609387wje.44.1357910022690; Fri, 11 Jan 2013 05:13:42 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id p2sm7204515wic.7.2013.01.11.05.13.40 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 05:13:42 -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, Hakan Berg , Lee Jones Subject: [PATCH 12/18] power: ab8500_btemp: remove superfluous BTEMP thermal comp. Date: Fri, 11 Jan 2013 13:13:00 +0000 Message-Id: <1357909986-9262-13-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1357909986-9262-1-git-send-email-lee.jones@linaro.org> References: <1357909986-9262-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQmvJeP4uRaz/FR0dVAIsj5IGdSg7HFiqxyD3jQPPr/bZNIIZzjI+dheciRSYn7X2+vHUwdE From: Hakan Berg BTEMP thermal compensation factor times 10 is applied in two places, probe and get_property. Removed from probe. Signed-off-by: Lee Jones Signed-off-by: Hakan Berg Reviewed-by: Karl KOMIEROWSKI --- drivers/power/ab8500_btemp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/ab8500_btemp.c b/drivers/power/ab8500_btemp.c index 6f6a715..c882a9a 100644 --- a/drivers/power/ab8500_btemp.c +++ b/drivers/power/ab8500_btemp.c @@ -1030,8 +1030,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);