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: 157734 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp610044jaa; Thu, 7 Feb 2019 04:56:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IYDUZabgiq/jSF/c+pykQfEWLuN6qQNC11tVmH8fT4UNmsJJLJKaT/y0vkLgerCihIByRJG X-Received: by 2002:a17:902:209:: with SMTP id 9mr16499996plc.288.1549544184677; Thu, 07 Feb 2019 04:56:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549544184; cv=none; d=google.com; s=arc-20160816; b=0l6Y3kqAhMnsC9DDkk5M7mheZvZxx9JiI1gpNtrbQiCQZCoiGE8bbUL709LeLAeqYW SYjaq8G4wpBgJsytWp307XJT8Aor4phpAvunKNrbPdDSJRo8VWQnjwObFmiRPsQB7MsS koOsn8FGF1+jJxn/zhOKTSETZsxqgxEUE19j/AfaGtg8xDIBneuxgTNQrclhUHM/Dqvk KYSp0cLZulv+vb7AS4lltyHTGdqQ4fgVl7jDyUH4hTK+3UvCL5H8LILgUav139jKFZxS qp+EItDTBL5+KpHPUclktlPUpk/UNu9ulQxFEvrrwL+7xom1SlHzjm+GRlK/hJRTqL+F UfsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=Tf/kMCCdkeqQnWWFTTv8/xc1yH66O1Xq3Z4kaU9bVds=; b=JCdIvgenbVy4C7+yJyXtYdSB6QkVL4CPJoCdzHs+bK86PPuYQQJbA8zrLLxROvZEJt bTseuX7zvXBRPQyn40H6FC4CB49RcJSHGbLqbIzxNH6xT4QDDtoiTvTp8oqxrWgR9Dox jMuzblqFuAlZwGqs5DzZiYir6wx6aXGIOhZzPE8scU9x2/VxrKm1r+ZFLBkCXFysHoFv ZOfdqG9MK8T2KgPjbeOCFAFnEpyIWm+myI/CW1TjKZX4S6Do5hPUnQUOKWTt2YdKd4Yg 1pQzfFV1Hj05WEMwBH4FB4wyz2cAbEQtDt+EDmSqtVCN5ZtnSxVWWlQyNeWUWM0zit9n gJMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sU0v9qq5; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si9338061pla.20.2019.02.07.04.56.24; Thu, 07 Feb 2019 04:56:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sU0v9qq5; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727166AbfBGM4X (ORCPT + 11 others); 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-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 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(-) -- 2.17.1 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; };