Message ID | 1464012466.1329.361.camel@vitec.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EEE25607D3 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 May 2016 14:09:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E56F3281FE for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 May 2016 14:09:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA8052822F; Mon, 23 May 2016 14:09:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 263A3281FE for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 May 2016 14:09:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b4qWo-0005W0-FR; Mon, 23 May 2016 14:08:18 +0000 Received: from mail-db3on0081.outbound.protection.outlook.com ([157.55.234.81] helo=emea01-db3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b4qWl-0005UI-3e for linux-arm-kernel@lists.infradead.org; Mon, 23 May 2016 14:08:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vitec365portal.onmicrosoft.com; s=selector1-vitec-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=egYFXyvYm5BDdtl/wrZOckP0Q68dTp29ucfGAZ91egw=; b=WlkYIzV63YS2nF5SwZiA4JnumnORku4mnLuFa4RPvfkgq6dQHDtoBiBjRJD+gKcuuNPH7K8edPvQjkk7m+988/32RGApR36uRhfH2RWQGn2osz1Ai0fEJ1/Iud3xBkJDbLTQhjnwW9uMCIZDK7T0T16yOWWqeOcXhgQJO+RwmcA= Received: from VI1PR05MB1696.eurprd05.prod.outlook.com (10.165.235.158) by VI1PR05MB1695.eurprd05.prod.outlook.com (10.165.235.157) with Microsoft SMTP Server (TLS) id 15.1.497.12; Mon, 23 May 2016 14:07:49 +0000 Received: from VI1PR05MB1696.eurprd05.prod.outlook.com ([10.165.235.158]) by VI1PR05MB1696.eurprd05.prod.outlook.com ([10.165.235.158]) with mapi id 15.01.0497.019; Mon, 23 May 2016 14:07:49 +0000 From: =?utf-8?B?RGFtaWVuIFRow6liYXVsdA==?= <damien.thebault@vitec.com> To: "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org> Subject: armada thermal issues with negative temperatures Thread-Topic: armada thermal issues with negative temperatures Thread-Index: AQHRtPx8EeznXqq3RUeOTM6ozcnLhg== Date: Mon, 23 May 2016 14:07:49 +0000 Message-ID: <1464012466.1329.361.camel@vitec.com> Accept-Language: en-US, fr-FR Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.infradead.org; dkim=none (message not signed) header.d=none; lists.infradead.org; dmarc=none action=none header.from=vitec.com; x-originating-ip: [46.218.234.67] x-ms-office365-filtering-correlation-id: 248447da-3a5d-4288-ca66-08d383139f94 x-microsoft-exchange-diagnostics: 1; VI1PR05MB1695; 5:9Zk9n3ChYgr2kEujJOmmjzyKFWotKVSPyBjYS5+CsBLzkxae6c+WUUj6VFdc8KjTwLCgVwwOd6lm5SGnr/TsdQ4MIj+3Tp819MUSdH9RQgQqNuixuf9w4yxO33MQwmssnFS+cF91syTgBPJ08jnQCw==; 24:Ya2SodmdiQpteA51Qr0vNe+y2fIWzxTyPiPXragr7TV00r14SAtFpFPOloq07xIPphTl+Xrs/bqGIGmOhC7zaU6Kb4PwVMp33Rif/lg/Us0=; 7:CUuWAytFukGm47AHdqXg4XT5FOf7D71EN0QnZAr4PbMIKpkT/aAhjbyaM2Wy0qx3/f+bz/kGdyt+dIqHCIWw2234pni9fuSpisk2SVzpe73kGaOVDmDhb+puqrnnkY6+ABTY348ox42/T5jrhLFbtwRdPSOk0aw59sfV6so95VsLyLgoVNr8fpttBuQWkVlt; 20:Ota6Y3jO1T7Iou222d8lOthRgNZ43UxSUtnzGtzvIQWrFMp5qTPvqdtx7+heO5owR/2qxnmfGljMjyQqLGQuykwRjhuG4M3LofxSU6o+nlqE+F1wPowyf+w+RImp/kJ33oaIiOSF7N7YBDpdquFsy8b/VHWhPko4wRQCmfUcYVSc1Wu1gsHjnkTUZqCiurGdKlFuObGpbP+lDmJV5hOyuSA8A7gTbikH5wOWwO9Je7Zea2WnJBpZ7lzi7lGfjnWz x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR05MB1695; x-microsoft-antispam-prvs: <VI1PR05MB1695CC86A2FB7026932FE07EEB4E0@VI1PR05MB1695.eurprd05.prod.outlook.com> x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:VI1PR05MB1695; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB1695; x-forefront-prvs: 0951AB0A30 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(85182001)(66066001)(87936001)(36756003)(110136002)(3280700002)(189998001)(3846002)(50986999)(102836003)(11100500001)(54356999)(86362001)(3660700001)(2900100001)(4326007)(2906002)(106116001)(85202003)(10400500002)(1220700001)(5008740100001)(2501003)(586003)(8676002)(5004730100002)(92566002)(6116002)(33646002)(2351001)(8936002)(5002640100001)(77096005)(81166006)(229853001)(122556002)(103116003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB1695; H:VI1PR05MB1696.eurprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-ID: <BD339B9D51F02A4284A2AACB8FB34FF7@eurprd05.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: vitec.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2016 14:07:49.1817 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 417d3214-b611-4fca-a1d5-e4446a9f50f4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB1695 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160523_070815_831798_B974FF25 X-CRM114-Status: GOOD ( 11.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: "ezequiel.garcia@free-electrons.com" <ezequiel.garcia@free-electrons.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c index ae75328..ad8b88c 100644 --- a/drivers/thermal/armada_thermal.c +++ b/drivers/thermal/armada_thermal.c @@ -177,9 +177,9 @@ static int armada_get_temp(struct thermal_zone_device *thermal, div = priv->data->coef_div; if (priv->data->inverted) - *temp = ((m * reg) - b) / div; + *temp = (long)((m * reg) - b) / (long)div; else - *temp = (b - (m * reg)) / div; + *temp = (long)(b - (m * reg)) / (long)div; return 0; }