hwmon: (lm90) use proper type for update_interval
Subsystems (2)
PATCH 1/1 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 <[email protected]>
---
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
@@ -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
Quoted 3 lines · Wolfram Sang
The code handles this variable always as unsigned, so adapt the type.
Signed-off-by Wolfram Sang <[email protected]>
Applied.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors