summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2016-06-05 09:35:43 +0200
committerGuenter Roeck <linux@roeck-us.net>2016-06-07 20:13:05 -0700
commit38bab98a8da4a2ff5c3f55b045b0c8bf6901362f (patch)
tree9f1c49fbb74a3a61e135b8985cb0e6713601b653
parent1069ad8f65a474bb30a487a001511b25f3575f5e (diff)
downloadop-kernel-dev-38bab98a8da4a2ff5c3f55b045b0c8bf6901362f.zip
op-kernel-dev-38bab98a8da4a2ff5c3f55b045b0c8bf6901362f.tar.gz
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>
-rw-r--r--drivers/hwmon/lm90.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index c9ff08d..e30a593 100644
--- a/drivers/hwmon/lm90.c
+++ b/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 */
OpenPOWER on IntegriCloud