projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1069ad8
)
hwmon: (lm90) use proper type for update_interval
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 5 Jun 2016 07:35:43 +0000
(09:35 +0200)
committer
Guenter 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/lm90.c
b/drivers/hwmon/lm90.c
index c9ff08dbe10cefcf8731c1360370edd037307d43..e30a5939dc0d5566ae76ef31e790a578d8b0877c 100644
(file)
--- 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 */