diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2012-01-04 14:58:52 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-01-05 11:19:34 -0500 |
commit | 179c4fdb565dd2157e5dfe89318b74868e3b523d (patch) | |
tree | 66c8b705260562df090a5061af2be9c80b71cd4b /drivers/hwmon/emc1403.c | |
parent | 24edc0a71badc13a9574b060e6a22e78339ac7a4 (diff) |
hwmon: replaced strict_str* with kstr*
replaced strict_strtol with kstrtol and
replaced strict_strtuol with kstrtuol
This satisfies checkpatch -f
Compile tested only: no warnings or errors given
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/emc1403.c')
-rw-r--r-- | drivers/hwmon/emc1403.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c index cd2a6e437aec..270ffab711cb 100644 --- a/drivers/hwmon/emc1403.c +++ b/drivers/hwmon/emc1403.c | |||
@@ -80,7 +80,7 @@ static ssize_t store_temp(struct device *dev, | |||
80 | unsigned long val; | 80 | unsigned long val; |
81 | int retval; | 81 | int retval; |
82 | 82 | ||
83 | if (strict_strtoul(buf, 10, &val)) | 83 | if (kstrtoul(buf, 10, &val)) |
84 | return -EINVAL; | 84 | return -EINVAL; |
85 | retval = i2c_smbus_write_byte_data(client, sda->index, | 85 | retval = i2c_smbus_write_byte_data(client, sda->index, |
86 | DIV_ROUND_CLOSEST(val, 1000)); | 86 | DIV_ROUND_CLOSEST(val, 1000)); |
@@ -98,7 +98,7 @@ static ssize_t store_bit(struct device *dev, | |||
98 | unsigned long val; | 98 | unsigned long val; |
99 | int retval; | 99 | int retval; |
100 | 100 | ||
101 | if (strict_strtoul(buf, 10, &val)) | 101 | if (kstrtoul(buf, 10, &val)) |
102 | return -EINVAL; | 102 | return -EINVAL; |
103 | 103 | ||
104 | mutex_lock(&data->mutex); | 104 | mutex_lock(&data->mutex); |
@@ -151,7 +151,7 @@ static ssize_t store_hyst(struct device *dev, | |||
151 | int hyst; | 151 | int hyst; |
152 | unsigned long val; | 152 | unsigned long val; |
153 | 153 | ||
154 | if (strict_strtoul(buf, 10, &val)) | 154 | if (kstrtoul(buf, 10, &val)) |
155 | return -EINVAL; | 155 | return -EINVAL; |
156 | 156 | ||
157 | mutex_lock(&data->mutex); | 157 | mutex_lock(&data->mutex); |