From patchwork Tue Jan 6 10:02:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 5572351 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6A13ABF6C3 for ; Tue, 6 Jan 2015 10:02:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 191FA201EC for ; Tue, 6 Jan 2015 10:02:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B01C201B4 for ; Tue, 6 Jan 2015 10:02:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754759AbbAFKC0 (ORCPT ); Tue, 6 Jan 2015 05:02:26 -0500 Received: from relmlor3.renesas.com ([210.160.252.173]:8881 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752716AbbAFKCZ (ORCPT ); Tue, 6 Jan 2015 05:02:25 -0500 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie2.idc.renesas.com with ESMTP; 06 Jan 2015 19:02:24 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 06C7448D06; Tue, 6 Jan 2015 19:02:25 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id EC8662806E; Tue, 6 Jan 2015 19:02:24 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id E60B72806D; Tue, 6 Jan 2015 19:02:24 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id VBB11710; Tue, 6 Jan 2015 19:02:24 +0900 X-IronPort-AV: E=Sophos;i="5.07,706,1413212400"; d="scan'208";a="176975429" Received: from mail-hk1lp0122.outbound.protection.outlook.com (HELO APAC01-HK1-obe.outbound.protection.outlook.com) ([207.46.51.122]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 06 Jan 2015 19:02:24 +0900 Received: from localhost (211.11.155.147) by SINPR06MB329.apcprd06.prod.outlook.com (10.141.110.15) with Microsoft SMTP Server (TLS) id 15.1.49.12; Tue, 6 Jan 2015 10:02:23 +0000 From: Yoshihiro Shimoda To: , CC: , , Yoshihiro Shimoda Subject: [PATCH 2/2] thermal: rcar: change type of ctemp in rcar_thermal_update_temp() Date: Tue, 6 Jan 2015 19:02:08 +0900 Message-ID: <1420538528-5236-3-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1420538528-5236-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1420538528-5236-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.147] X-ClientProxiedBy: HKXPR02CA0039.apcprd02.prod.outlook.com (25.161.48.24) To SINPR06MB329.apcprd06.prod.outlook.com (10.141.110.15) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; X-DmarcAction: None X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(3005003);SRVR:SINPR06MB329; X-Forefront-PRVS: 0448A97BF2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(6009001)(189002)(199003)(107046002)(78352002)(229853001)(101416001)(31966008)(50986999)(92566001)(4396001)(106356001)(50226001)(21056001)(105586002)(48376002)(50466002)(76506005)(36756003)(122386002)(20776003)(64706001)(120916001)(87976001)(40100003)(47776003)(66066001)(99396003)(89996001)(42186005)(19580395003)(42382002)(97736003)(77096005)(76176999)(68736005)(2950100001)(19580405001)(33646002)(46102003)(77156002)(62966003)(88662002); DIR:OUT; SFP:1102; SCL:1; SRVR:SINPR06MB329; H:localhost; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; MX:0; A:0; LANG:en; X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2015 10:02:23.2015 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SINPR06MB329 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since the ctemp is used for rcar_thermal_write() in rcar_thermal_update_temp(), the type of ctemp should be "u32" instead of "int". Signed-off-by: Yoshihiro Shimoda Acked-by: Geert Uytterhoeven --- drivers/thermal/rcar_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index bbdf64e..6dcead1 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -63,7 +63,7 @@ struct rcar_thermal_priv { struct mutex lock; struct list_head list; int id; - int ctemp; + u32 ctemp; }; #define rcar_thermal_for_each_priv(pos, common) \ @@ -145,7 +145,7 @@ static int rcar_thermal_update_temp(struct rcar_thermal_priv *priv) { struct device *dev = rcar_priv_to_dev(priv); int i; - int ctemp, old, new; + u32 ctemp, old, new; int ret = -EINVAL; mutex_lock(&priv->lock);