Patchwork [v1,15/24] drivers: thermal: tsens: change data type for sensor IDs

login
register
mail settings
Submitter Amit Kucheria
Date Feb. 7, 2019, 10:49 a.m.
Message ID <86ff4442dc1cae50a5f63aaa06c831bd3ee76d9c.1549525708.git.amit.kucheria@linaro.org>
Download mbox | patch
Permalink /patch/720469/
State New
Headers show

Comments

Amit Kucheria - Feb. 7, 2019, 10:49 a.m.
The IDs cannot be negative, fix the data type.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
---
 drivers/thermal/qcom/tsens.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

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;
 };