hwmon: (lm90) use proper type for update_interval
authorWolfram Sang <wsa@the-dreams.de>
Sun, 5 Jun 2016 07:35:43 +0000 (09:35 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 8 Jun 2016 03:13:05 +0000 (20:13 -0700)
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>
drivers/hwmon/lm90.c

index c9ff08d..e30a593 100644 (file)
@@ -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 */