From patchwork Thu Feb 28 12:21:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10832925 X-Patchwork-Delegate: agross@codeaurora.org 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 C890E17E9 for ; Thu, 28 Feb 2019 12:27:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B608F2EC05 for ; Thu, 28 Feb 2019 12:27:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A76F32EC25; Thu, 28 Feb 2019 12:27:31 +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 573B32EC05 for ; Thu, 28 Feb 2019 12:27:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731573AbfB1M12 (ORCPT ); Thu, 28 Feb 2019 07:27:28 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52798 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731510AbfB1M12 (ORCPT ); Thu, 28 Feb 2019 07:27:28 -0500 Received: by mail-wm1-f67.google.com with SMTP id m1so9086225wml.2 for ; Thu, 28 Feb 2019 04:27:27 -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=5rNls9PJRn4v8yy/hG2zwnbZ+uPiqMw2tvNWVfaTE3s=; b=JNP+0LMsdZEAuxUlH07ex986yDXpk6607vbc8v5oR6cGShkyhAD2uqSWayDF69vU+3 E7xVC06s8fAxUyu122JXU4uiSU2m1C9eIggCzLOoUtf3oiArQbtZhDM8h99K3xu8R1GQ S7NAGCEWZhD9/QF24Z914k1+dL2b/Q/xHo0P1X+NY8DLrZfah/fGq3mtG7oaaQrCgu1x cXkSYUWMe+Fb8gFlghNfRuhx8F9Fy0kVaKdGhkARFugxt6dc2bYYVlhEi5EHDE44WJWN ylBmy3GSRugs4ylL9HxRnCGNqA3enBd9xrmsd+7b7X9QKpexjeYJUunoujlu7j0GLOaW FD5Q== 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=5rNls9PJRn4v8yy/hG2zwnbZ+uPiqMw2tvNWVfaTE3s=; b=fcsul1WQjeNdTJ5edbzbGFpELWo/of+XLnlHxXjt5bu9ZUEKWy/bpm7UvS7G8kbmxx jnyD6mm0gPocYN204fq5AkG34FGWNZjXdG/ntlI/ZM3lLoSo+ebQ7nMw6Wfhfd0EcCHw URmnp8lOf8Cz0eN2AMTE1bWe9S/AoOShrND0WePhKzG2qdAyNrJy7NjEyajWaw2VSrzs Vd9qPvP+ZMS+SJDNcjWcrcd5x0Q2tAtPd5AXD+nb/MMtL09ECMOPYjjgYHevJzYP5iNu cupzBYE9TmYX9lgmYNEM6KC0vo5N5lV7e7aTwMvILHS4/rZdwDVD7zFRISqkJomcNOXD 2djA== X-Gm-Message-State: AHQUAubk2BI1NkOZtqRzRayIgndDbPJQDd7kp5e8+HFVxlzh0OmpwIEy daPkS6tKDc5d/tiMY5FFROugc1guFh4= X-Google-Smtp-Source: APXvYqxzWrrqBwV+ftkRLFSYRZ/LSiryOWWt+evoyQMpzQImdG+MG8Hm2JluUfDcBonZMzFUz4zmxw== X-Received: by 2002:a1c:2097:: with SMTP id g145mr2665465wmg.81.1551356846508; Thu, 28 Feb 2019 04:27:26 -0800 (PST) Received: from localhost ([49.248.54.130]) by smtp.gmail.com with ESMTPSA id x17sm32944388wrd.95.2019.02.28.04.27.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 04:27:25 -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 v2 15/24] drivers: thermal: tsens: change data type for sensor IDs Date: Thu, 28 Feb 2019 17:51:05 +0530 Message-Id: <031b5d48e77a0372d27cd9c79fe60730e47447e7.1551355503.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 023fed3352e3..a20725b1cc67 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; };