From: Zhang Rui <rui.zhang@intel.com>
To: Amit Daniel Kachhap <amit.daniel@samsung.com>
Cc: linux-pm@vger.kernel.org, jonghwa3.lee@samsung.com,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
kgene.kim@samsung.com
Subject: Re: [PATCH V3 2/2] thermal: exynos: Use the new thermal trend type for quick cooling action.
Date: Tue, 19 Feb 2013 23:50:21 +0800 [thread overview]
Message-ID: <1361289021.2323.33.camel@rzhang1-mobl4> (raw)
In-Reply-To: <1360285987-13921-2-git-send-email-amit.daniel@samsung.com>
On Thu, 2013-02-07 at 17:13 -0800, Amit Daniel Kachhap wrote:
> 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.
>
> Acked-by: Kukjin Kim <kgene.kim@samsung.com>
> Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
applied to thermal -next.
thanks,
rui
> ---
>
> Hi,
>
> Submitting these patches again as they got lost somewhere and was not merged.
>
> Changes since V2:
> * Rebased against Rui Zhang next tree.
> * Added Kukjin Kim acked by.
>
> All these patches are based on thermal maintainer next branch.
> git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git thermal
>
> 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 65f69cf..030bba3 100644
> --- a/drivers/thermal/exynos_thermal.c
> +++ b/drivers/thermal/exynos_thermal.c
> @@ -296,7 +296,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;
> }
> @@ -399,9 +399,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 0;
> }
next prev parent reply other threads:[~2013-02-19 15:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-08 1:13 [PATCH V3 1/2] Thermal: exynos: Add support for temperature falling interrupt Amit Daniel Kachhap
2013-02-08 1:13 ` [PATCH V3 2/2] thermal: exynos: Use the new thermal trend type for quick cooling action Amit Daniel Kachhap
2013-02-19 15:50 ` Zhang Rui [this message]
2013-02-19 15:49 ` [PATCH V3 1/2] Thermal: exynos: Add support for temperature falling interrupt Zhang Rui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1361289021.2323.33.camel@rzhang1-mobl4 \
--to=rui.zhang@intel.com \
--cc=amit.daniel@samsung.com \
--cc=jonghwa3.lee@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).