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/lm90.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/lm90.c')
-rw-r--r-- | drivers/hwmon/lm90.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c index 615bc4f4e530..bdfd675488ae 100644 --- a/drivers/hwmon/lm90.c +++ b/drivers/hwmon/lm90.c | |||
@@ -730,7 +730,7 @@ static ssize_t set_temp8(struct device *dev, struct device_attribute *devattr, | |||
730 | long val; | 730 | long val; |
731 | int err; | 731 | int err; |
732 | 732 | ||
733 | err = strict_strtol(buf, 10, &val); | 733 | err = kstrtol(buf, 10, &val); |
734 | if (err < 0) | 734 | if (err < 0) |
735 | return err; | 735 | return err; |
736 | 736 | ||
@@ -798,7 +798,7 @@ static ssize_t set_temp11(struct device *dev, struct device_attribute *devattr, | |||
798 | long val; | 798 | long val; |
799 | int err; | 799 | int err; |
800 | 800 | ||
801 | err = strict_strtol(buf, 10, &val); | 801 | err = kstrtol(buf, 10, &val); |
802 | if (err < 0) | 802 | if (err < 0) |
803 | return err; | 803 | return err; |
804 | 804 | ||
@@ -859,7 +859,7 @@ static ssize_t set_temphyst(struct device *dev, struct device_attribute *dummy, | |||
859 | int err; | 859 | int err; |
860 | int temp; | 860 | int temp; |
861 | 861 | ||
862 | err = strict_strtol(buf, 10, &val); | 862 | err = kstrtol(buf, 10, &val); |
863 | if (err < 0) | 863 | if (err < 0) |
864 | return err; | 864 | return err; |
865 | 865 | ||
@@ -912,7 +912,7 @@ static ssize_t set_update_interval(struct device *dev, | |||
912 | unsigned long val; | 912 | unsigned long val; |
913 | int err; | 913 | int err; |
914 | 914 | ||
915 | err = strict_strtoul(buf, 10, &val); | 915 | err = kstrtoul(buf, 10, &val); |
916 | if (err) | 916 | if (err) |
917 | return err; | 917 | return err; |
918 | 918 | ||
@@ -1080,7 +1080,7 @@ static ssize_t set_pec(struct device *dev, struct device_attribute *dummy, | |||
1080 | long val; | 1080 | long val; |
1081 | int err; | 1081 | int err; |
1082 | 1082 | ||
1083 | err = strict_strtol(buf, 10, &val); | 1083 | err = kstrtol(buf, 10, &val); |
1084 | if (err < 0) | 1084 | if (err < 0) |
1085 | return err; | 1085 | return err; |
1086 | 1086 | ||