Explorar o código

hwmon: (lm90) use proper type for update_interval

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

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Wolfram Sang %!s(int64=9) %!d(string=hai) anos
pai
achega
38bab98a8d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/hwmon/lm90.c

+ 1 - 1
drivers/hwmon/lm90.c

@@ -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 */