diff mbox series

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

Message ID 031b5d48e77a0372d27cd9c79fe60730e47447e7.1551355503.git.amit.kucheria@linaro.org
State Accepted
Commit 66ad8a100953dc1433c3ead8c473746d60c05693
Headers show
Series None | expand

Commit Message

Amit Kucheria Feb. 28, 2019, 12:21 p.m. UTC
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(-)

-- 
2.17.1
diff mbox series

Patch

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