Skip to contentSkip to conversation

hwmon: (lm90) use proper type for update_interval

PATCH Applied Wolfram Sang 2 participants 2 messages Jun 5, 2016 – Jun 8, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: (lm90) use proper type for update_interval

The code handles this variable always as unsigned, so adapt the type.

---

Triggered by a code-checker warning. Only compile tested.

 drivers/hwmon/lm90.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/lm90.c +1 -1
index c9ff08dbe10cef..e30a5939dc0d55 100644
@@ -375,7 +375,7 @@ struct lm90_data {
 	int kind;
 	u32 flags;
 
-	int update_interval;	/* in milliseconds */
+	unsigned int update_interval; /* in milliseconds */
 
 	u8 config_orig;		/* Original configuration register value */
 	u8 convrate_orig;	/* Original conversion rate register value */
Signature · 7 lines
2.8.1


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors