diff options
author | Christian Hohnstaedt <chohnstaedt@innominate.com> | 2007-08-16 05:40:10 -0400 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2007-10-09 22:56:29 -0400 |
commit | 5bfedac045082a97e20d47d876071279ef984d28 (patch) | |
tree | c6432db00589d4858ca1b4a04624dc74be5ba181 /drivers/hwmon/lm77.c | |
parent | dcf3b5fb7fb6e1b56bfaf705e665b04870213768 (diff) |
hwmon: Allow writing of negative trigger temperatures
- replace differing temperature variable types by long
- use strtol() instead of strtoul() for conversion
Signed-off-by: Christian Hohnstaedt <chohnstaedt@innominate.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers/hwmon/lm77.c')
-rw-r--r-- | drivers/hwmon/lm77.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm77.c b/drivers/hwmon/lm77.c index dd969f1e8415..46e3abad7206 100644 --- a/drivers/hwmon/lm77.c +++ b/drivers/hwmon/lm77.c | |||
@@ -138,7 +138,7 @@ static ssize_t set_##value(struct device *dev, struct device_attribute *attr, co | |||
138 | { \ | 138 | { \ |
139 | struct i2c_client *client = to_i2c_client(dev); \ | 139 | struct i2c_client *client = to_i2c_client(dev); \ |
140 | struct lm77_data *data = i2c_get_clientdata(client); \ | 140 | struct lm77_data *data = i2c_get_clientdata(client); \ |
141 | long val = simple_strtoul(buf, NULL, 10); \ | 141 | long val = simple_strtol(buf, NULL, 10); \ |
142 | \ | 142 | \ |
143 | mutex_lock(&data->update_lock); \ | 143 | mutex_lock(&data->update_lock); \ |
144 | data->value = val; \ | 144 | data->value = val; \ |