From: Amit Kucheria Date: Wed, 20 Mar 2019 13:17:54 +0000 (+0530) Subject: drivers: thermal: tsens: change data type for sensor IDs X-Git-Tag: v5.2-rc1~47^2~33 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=66ad8a100953dc1433c3ead8c473746d60c05693;p=users%2Fjedix%2Flinux-maple.git drivers: thermal: tsens: change data type for sensor IDs The IDs cannot be negative, fix the data type. Signed-off-by: Amit Kucheria Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h index a3bf7de88ae81..527c42cfd2d57 100644 --- a/drivers/thermal/qcom/tsens.h +++ b/drivers/thermal/qcom/tsens.h @@ -35,8 +35,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; };