projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hwmon: (gpio-fan) Prevent overflow problem when writing large limits
[profile/ivi/kernel-x86-ivi.git]
/
drivers
/
hwmon
/
gpio-fan.c
diff --git
a/drivers/hwmon/gpio-fan.c
b/drivers/hwmon/gpio-fan.c
index
73181be
..
814f7ee
100644
(file)
--- a/
drivers/hwmon/gpio-fan.c
+++ b/
drivers/hwmon/gpio-fan.c
@@
-173,7
+173,7
@@
static int get_fan_speed_index(struct gpio_fan_data *fan_data)
return -ENODEV;
}
-static int rpm_to_speed_index(struct gpio_fan_data *fan_data,
int
rpm)
+static int rpm_to_speed_index(struct gpio_fan_data *fan_data,
unsigned long
rpm)
{
struct gpio_fan_speed *speed = fan_data->speed;
int i;