From patchwork Mon Nov 26 02:32:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 1799951 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id CDDF7DFF71 for ; Mon, 26 Nov 2012 02:32:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753902Ab2KZCcK (ORCPT ); Sun, 25 Nov 2012 21:32:10 -0500 Received: from mail-da0-f46.google.com ([209.85.210.46]:59301 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753344Ab2KZCcH (ORCPT ); Sun, 25 Nov 2012 21:32:07 -0500 Received: by mail-da0-f46.google.com with SMTP id p5so3488559dak.19 for ; Sun, 25 Nov 2012 18:32:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:sender:message-id:from:to:cc:in-reply-to:references:from :subject:mime-version:content-type; bh=trYFJRtVNmx+Qwj23bQ20u936bv1tf8cthqHgjSUUkU=; b=iO/ULJZ5Vig0BeE99Z7p0Kvswy5Nzh2CH/gMEBthL7+3bhuQjZHR46WdH8ARHCPENR bb0sedqROd10bbV4pgeToqannLIsZHfoFA1ZrvLoBnqSBCHxw48kSz/sRoOYb7KNgRY4 TsOcOM1fEr6bb5gW7xTOsVmxUPRKOJzsL1pSDeS3y92B4aCxbEWQQ4HAX6r7TkFrUQNz G765eI1epHx3lKOPbKfTYIDdP/7AVxBDS6PhR6yKcWoielhJCtuaPoRU60DVROmcs/u5 fqEag2pD7ggJ9U9XtqcjDQUA6yUYheYAzeP8o7//WLDKtnHdm3hVGymzsbKsyXz+twX9 c8DA== Received: by 10.66.82.68 with SMTP id g4mr29065886pay.9.1353897126975; Sun, 25 Nov 2012 18:32:06 -0800 (PST) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPS id nf9sm7893015pbc.17.2012.11.25.18.32.05 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 18:32:06 -0800 (PST) Date: Sun, 25 Nov 2012 18:32:06 -0800 (PST) Message-ID: <87haodw0v0.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Zhang Rui Cc: Simon , Magnus , linux-pm@vger.kernel.org, Kuninori Morimoto In-Reply-To: <87ip8tw0x1.wl%kuninori.morimoto.gx@renesas.com> References: <87sj82uo7o.wl%kuninori.morimoto.gx@renesas.com> <87pq36uo5v.wl%kuninori.morimoto.gx@renesas.com> <1353652189.2111.7.camel@rzhang1-mobl4> <87k3t9w39m.wl%kuninori.morimoto.gx@renesas.com> <1353894734.2299.16.camel@rzhang1-mobl4> <87ip8tw0x1.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 1/3] thermal: rcar: fixup the unit of temperature MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The unit of temperature is Milli-Celsius. Signed-off-by: Kuninori Morimoto --- drivers/thermal/rcar_thermal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 81dce23..f2678ff 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -43,6 +43,8 @@ struct rcar_thermal_priv { u32 comp; }; +#define MCELSIUS(temp) ((temp) * 1000) + /* * basic functions */ @@ -169,7 +171,7 @@ static int rcar_thermal_get_temp(struct thermal_zone_device *zone, } } - *temp = tmp; + *temp = MCELSIUS(tmp); return 0; }