From patchwork Thu Dec 13 15:21:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13548 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 1931B23E2A for ; Thu, 13 Dec 2012 15:22:16 +0000 (UTC) Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by fiordland.canonical.com (Postfix) with ESMTP id BFC68A185E5 for ; Thu, 13 Dec 2012 15:22:15 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id c14so4033267ieb.28 for ; Thu, 13 Dec 2012 07:22:15 -0800 (PST) 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=W2SASIvwJudtLU2vhT5aiACpwWhkJkU93IthbpetsSM=; b=eGGouhWVbdmaZX7GsRJ6FM2c8NkcWs7M7VJjcH22EcZ3+HzHL/ZWmdbkuJtotlHZK/ 3U4x+n6QjZdW3AS4NagfHHQJ6rTGoC8eKKC46bFINoBbrAumZ+XQhE7xNnq9jTG40nig Ld1XWhRVrqUREeBrKNAzESnkcEyKmT46ZjsBpHU6nhlfhRU8SN/VXCop2YBHS4ucYVHw 6Ze7YSulP3dJTKakpQzWwV4s+5zto81vf8xO7GbhcOMsdx1GpkhXGyzygCgxxiGZLVtB j2L+47oSI8qQmLcTldzxbLlO6HVKkbvxZxg1AfO0eI/YRFdBjCoylPpb5FUhH6dKJmOy SMyA== Received: by 10.50.213.69 with SMTP id nq5mr9798715igc.70.1355412135230; Thu, 13 Dec 2012 07:22:15 -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.50.67.148 with SMTP id n20csp16266igt; Thu, 13 Dec 2012 07:22:14 -0800 (PST) Received: by 10.180.101.104 with SMTP id ff8mr3060755wib.11.1355412134185; Thu, 13 Dec 2012 07:22:14 -0800 (PST) Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170]) by mx.google.com with ESMTPS id ez10si3167664wib.1.2012.12.13.07.22.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 07:22:14 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.170 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.170; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.170 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-we0-f170.google.com with SMTP id r1so1027561wey.15 for ; Thu, 13 Dec 2012 07:22:13 -0800 (PST) Received: by 10.180.109.132 with SMTP id hs4mr4056750wib.1.1355412133666; Thu, 13 Dec 2012 07:22:13 -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 i6sm8200894wix.5.2012.12.13.07.22.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 07:22:13 -0800 (PST) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: cbou@mail.ru, Hakan Berg , Lee Jones Subject: [PATCH 12/18] power: ab8500_btemp: remove superfluous BTEMP thermal comp. Date: Thu, 13 Dec 2012 15:21:35 +0000 Message-Id: <1355412102-14265-13-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1355412102-14265-1-git-send-email-lee.jones@linaro.org> References: <1355412102-14265-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQl+s0hy3YeuPSav9CDz4OViuA9VTn4dgVC1xIsm/LG2YjTHmEjc/DFm1e5k6klLaF3ijyXn 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);