From patchwork Thu Feb 7 10:49:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10801067 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B8ED17FB for ; Thu, 7 Feb 2019 12:56:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19ADF2CC29 for ; Thu, 7 Feb 2019 12:56:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C45C2D3AD; Thu, 7 Feb 2019 12:56:25 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF9FD2CC29 for ; Thu, 7 Feb 2019 12:56:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727166AbfBGM4X (ORCPT ); Thu, 7 Feb 2019 07:56:23 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37914 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727132AbfBGM4X (ORCPT ); Thu, 7 Feb 2019 07:56:23 -0500 Received: by mail-pg1-f196.google.com with SMTP id g189so4456518pgc.5 for ; Thu, 07 Feb 2019 04:56:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=Tf/kMCCdkeqQnWWFTTv8/xc1yH66O1Xq3Z4kaU9bVds=; b=sU0v9qq55wH6RZ1IqLcOLRepVD1ccpTpRFppGRa4VCWQUbnzgIyNWV+du9D14r6IXV SMAH+vcKVAmm7wXBodx14h8gf+pPYJQvfmjDQFjZVnjRPWSVqj/gYrLRmdAzFIqj0+nU aTPkmaRsbf3w1Getc4x67lOB4e3t3mlqED+pPmlTUEvtvxBh2P2NjzTgPROB1ONzvR+P GF1OMJalZfmh2MB/wiNatnsMQ27h3Iw/YKtQogXolYFRXwG2wfuLwGsSVK3aU/nvISFx GeTnAuoJx8f2jnSlqqzx18tO9y5VtExoyTRYCT//p0kVZcPs+1W9oRUrr8OqTetvmEgf Cvjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=Tf/kMCCdkeqQnWWFTTv8/xc1yH66O1Xq3Z4kaU9bVds=; b=jfOn4MwM1mbBXatiSHDxs8BIqJ0OP5j1fjF3MBJl3dFoQYlrnS/u0t4kzn/HXfitVG ltDaHlbQmOImD7wWNo005RSFpUh3JTn+xSlyHWlM7/b+D+/Wz8mse2KBOOQrR3SnyEtM ojBMb0cH77B1TRrezrJuoq0vALFfpe3A6cq9vskz0AbsSt9iUXMvbr7XKgF80TQv+xFI 4hZkUfKlWsccDdHJHl5XSUZRdtt0A2pfzizhEyYs8ypjNVsWa+D3Z2cD4snZEavhi8GJ gzhuWelUBg9HQ5/7TodagQMfVDO1mTlWxUg1RzbtfUdy0gQyhjt1lqmWQ3nfF1CH/Jul RYAg== X-Gm-Message-State: AHQUAubdEPWAL3jqthbBaHOgn9+geajA3u4L+FllcFwbdDhlfivxpveY JOvUBgfxkUHLao26UCjvlJe89w== X-Google-Smtp-Source: AHgI3IbV3hU0We1HQRBYn0OtUEdNsWgEBUzZwDaY2k+xFi5t1a+ZI14vug9ZprvbEYeSO2DvMf86uw== X-Received: by 2002:a63:1e17:: with SMTP id e23mr1052210pge.130.1549544182620; Thu, 07 Feb 2019 04:56:22 -0800 (PST) Received: from localhost ([2402:3a80:c80:4138:75dd:3900:1d90:762f]) by smtp.gmail.com with ESMTPSA id y6sm13045892pfd.104.2019.02.07.04.56.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 04:56:22 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Daniel Lezcano , David Brown , Zhang Rui Cc: linux-pm@vger.kernel.org Subject: [PATCH v1 15/24] drivers: thermal: tsens: change data type for sensor IDs Date: Thu, 7 Feb 2019 16:19:33 +0530 Message-Id: <86ff4442dc1cae50a5f63aaa06c831bd3ee76d9c.1549525708.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The IDs cannot be negative, fix the data type. Signed-off-by: Amit Kucheria --- drivers/thermal/qcom/tsens.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h index da4cfb23dfe9..e0c1ca1a7467 100644 --- a/drivers/thermal/qcom/tsens.h +++ b/drivers/thermal/qcom/tsens.h @@ -29,8 +29,8 @@ struct tsens_sensor { struct tsens_priv *priv; struct thermal_zone_device *tzd; int offset; - int id; - int hw_id; + unsigned int id; + unsigned int hw_id; int slope; u32 status; };