From patchwork Thu Jul 23 10:37:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sascha Hauer X-Patchwork-Id: 499326 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 08668140D17 for ; Thu, 23 Jul 2015 20:41:46 +1000 (AEST) 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 1ZIDuH-0004rE-Rt; Thu, 23 Jul 2015 10:39:17 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZIDta-0004oj-7I for linux-arm-kernel@lists.infradead.org; Thu, 23 Jul 2015 10:38:35 +0000 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] ident=Debian-exim) by metis.ext.pengutronix.de with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZIC1c-0004lW-1d; Thu, 23 Jul 2015 10:38:44 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1ZIDt0-0006PY-Dz; Thu, 23 Jul 2015 12:37:58 +0200 Date: Thu, 23 Jul 2015 12:37:58 +0200 From: Sascha Hauer To: "Zhang, Rui" Subject: Re: [PATCH v2] thermal: consistently use int for temperatures Message-ID: <20150723103758.GI18700@pengutronix.de> References: <1437463292-24844-1-git-send-email-s.hauer@pengutronix.de> <9hhk2tteqb3.fsf@e105922-lin.cambridge.arm.com> <744357E9AAD1214791ACBA4B0B9092630153E699@SHSMSX101.ccr.corp.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <744357E9AAD1214791ACBA4B0B9092630153E699@SHSMSX101.ccr.corp.intel.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 12:34:28 up 28 days, 4:55, 62 users, load average: 0.07, 0.21, 0.22 User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150723_033834_434454_3890002C X-CRM114-Status: GOOD ( 18.22 ) X-Spam-Score: -3.1 (---) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-3.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.2 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lukasz Majewski , "linux-samsung-soc@vger.kernel.org" , Heiko Stuebner , Stephen Warren , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , "lm-sensors@lm-sensors.org" , Punit Agrawal , Peter Feuerer , "linux-kernel@vger.kernel.org" , "platform-driver-x86@vger.kernel.org" , Eduardo Valentin , "linux-acpi@vger.kernel.org" , Thierry Reding , Guenter Roeck , "linux-arm-kernel@lists.infradead.org" , Darren Hart , Maxime Ripard , "linux-omap@vger.kernel.org" , Jean Delvare Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hi Zhang, On Tue, Jul 21, 2015 at 01:35:31PM +0000, Zhang, Rui wrote: > > > > Patch applied. Thanks for applying. I missed to convert another place, so we get a new compiler warning. The attached patch fixes this (suitable for git rebase --autosquash). Please let me know if you can handle this or if you prefer a new patch instead. Thanks Sascha -----------------------------8<------------------------------------- From 4907a7c32fd16eaf9f31d9f904276c9a0176b717 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 23 Jul 2015 12:32:31 +0200 Subject: [PATCH] fixup! thermal: consistently use int for temperatures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes: drivers/power/charger-manager.c: In function ‘cm_get_battery_temperature’: drivers/power/charger-manager.c:622:45: warning: passing argument 2 of ‘thermal_zone_get_temp’ from incompatible pointer type ret = thermal_zone_get_temp(cm->tzd_batt, (unsigned long *)temp); Signed-off-by: Sascha Hauer --- drivers/power/charger-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index 1c202cc..907293e 100644 --- a/drivers/power/charger-manager.c +++ b/drivers/power/charger-manager.c @@ -619,7 +619,7 @@ static int cm_get_battery_temperature(struct charger_manager *cm, #ifdef CONFIG_THERMAL if (cm->tzd_batt) { - ret = thermal_zone_get_temp(cm->tzd_batt, (unsigned long *)temp); + ret = thermal_zone_get_temp(cm->tzd_batt, temp); if (!ret) /* Calibrate temperature unit */ *temp /= 100;