From patchwork Fri Nov 9 05:04:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 1718681 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 19A453FCF7 for ; Fri, 9 Nov 2012 05:04:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750781Ab2KIFEJ (ORCPT ); Fri, 9 Nov 2012 00:04:09 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:37132 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750734Ab2KIFEI (ORCPT ); Fri, 9 Nov 2012 00:04:08 -0500 Received: by mail-pa0-f46.google.com with SMTP id hz1so2507901pad.19 for ; Thu, 08 Nov 2012 21:04:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=N1EiBUUZK2sudMX9/rO2IpxtO8NbFAO/eT4BIv9Q5TE=; b=bDEqvYF/7ZD6vlCCihsN5oV6PzWdgppfZYJjeW4zybGixE9slTpTbi44fmj2zywJOj IONteBk2kmQkArTIXU0Y0DlX8QHx/B67c8p15l0PlL8CyQ5n1kis5GFk7V4DWJXpqCtU gslXL37NyGdxlxBAju37P5Mfyxr0jwrWd6/OLZxJEPCCf1AvhGvsY6tWZhY5kJZJPTCi FRjeoNN/b5B/vBGQY7IsSJuKnZHfOfPRs05Bhr+p5aV9+CcNA3y+ebxkVgIBu9M5QNUq S3U00NL1N3MY9qV9VaR8gdZCqWWRNKi7i7Wr0KDWRQfNzSFd3e0fHJkmVZ+XD+jk4FIB 3pdQ== Received: by 10.68.235.208 with SMTP id uo16mr30104236pbc.65.1352437447697; Thu, 08 Nov 2012 21:04:07 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id j9sm17319935pav.15.2012.11.08.21.04.02 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Nov 2012 21:04:06 -0800 (PST) From: Amit Daniel Kachhap To: linux-pm@lists.linux-foundation.org Cc: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, durgadoss.r@intel.com, lenb@kernel.org, rui.zhang@intel.com, linux-acpi@vger.kernel.org, amit.kachhap@linaro.org, jonghwa3.lee@samsung.com Subject: [PATCH 4/4] thermal: exynos: Use the new thermal trend type for quick cooling action. Date: Fri, 9 Nov 2012 10:34:04 +0530 Message-Id: <1352437444-13546-1-git-send-email-amit.kachhap@linaro.org> X-Mailer: git-send-email 1.7.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org This patch uses the quick thermal cooling trend type macros. This is needed as exynos5 and other thermal sensors now supports only interrupt method for thresold temperature check. Signed-off-by: Amit Daniel Kachhap Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/exynos_thermal.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal/exynos_thermal.c index bbaff56..097c218 100644 --- a/drivers/thermal/exynos_thermal.c +++ b/drivers/thermal/exynos_thermal.c @@ -287,7 +287,7 @@ static int exynos_bind(struct thermal_zone_device *thermal, case MONITOR_ZONE: case WARN_ZONE: if (thermal_zone_bind_cooling_device(thermal, i, cdev, - level, level)) { + level, 0)) { pr_err("error binding cdev inst %d\n", i); ret = -EINVAL; } @@ -373,9 +373,9 @@ static int exynos_get_trend(struct thermal_zone_device *thermal, return ret; if (thermal->temperature >= trip_temp) - *trend = THERMAL_TREND_RAISING; + *trend = THERMAL_TREND_RAISE_FULL; else - *trend = THERMAL_TREND_DROPPING; + *trend = THERMAL_TREND_DROP_FULL; return ret; }