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/f71882fg.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/f71882fg.c')
-rw-r--r-- | drivers/hwmon/f71882fg.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/hwmon/f71882fg.c b/drivers/hwmon/f71882fg.c index 59dd881c71d8..e50305819f01 100644 --- a/drivers/hwmon/f71882fg.c +++ b/drivers/hwmon/f71882fg.c | |||
@@ -1333,7 +1333,7 @@ static ssize_t store_fan_full_speed(struct device *dev, | |||
1333 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 1333 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
1334 | long val; | 1334 | long val; |
1335 | 1335 | ||
1336 | err = strict_strtol(buf, 10, &val); | 1336 | err = kstrtol(buf, 10, &val); |
1337 | if (err) | 1337 | if (err) |
1338 | return err; | 1338 | return err; |
1339 | 1339 | ||
@@ -1367,7 +1367,7 @@ static ssize_t store_fan_beep(struct device *dev, struct device_attribute | |||
1367 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 1367 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
1368 | unsigned long val; | 1368 | unsigned long val; |
1369 | 1369 | ||
1370 | err = strict_strtoul(buf, 10, &val); | 1370 | err = kstrtoul(buf, 10, &val); |
1371 | if (err) | 1371 | if (err) |
1372 | return err; | 1372 | return err; |
1373 | 1373 | ||
@@ -1420,7 +1420,7 @@ static ssize_t store_in_max(struct device *dev, struct device_attribute | |||
1420 | int err; | 1420 | int err; |
1421 | long val; | 1421 | long val; |
1422 | 1422 | ||
1423 | err = strict_strtol(buf, 10, &val); | 1423 | err = kstrtol(buf, 10, &val); |
1424 | if (err) | 1424 | if (err) |
1425 | return err; | 1425 | return err; |
1426 | 1426 | ||
@@ -1454,7 +1454,7 @@ static ssize_t store_in_beep(struct device *dev, struct device_attribute | |||
1454 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 1454 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
1455 | unsigned long val; | 1455 | unsigned long val; |
1456 | 1456 | ||
1457 | err = strict_strtoul(buf, 10, &val); | 1457 | err = kstrtoul(buf, 10, &val); |
1458 | if (err) | 1458 | if (err) |
1459 | return err; | 1459 | return err; |
1460 | 1460 | ||
@@ -1524,7 +1524,7 @@ static ssize_t store_temp_max(struct device *dev, struct device_attribute | |||
1524 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 1524 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
1525 | long val; | 1525 | long val; |
1526 | 1526 | ||
1527 | err = strict_strtol(buf, 10, &val); | 1527 | err = kstrtol(buf, 10, &val); |
1528 | if (err) | 1528 | if (err) |
1529 | return err; | 1529 | return err; |
1530 | 1530 | ||
@@ -1566,7 +1566,7 @@ static ssize_t store_temp_max_hyst(struct device *dev, struct device_attribute | |||
1566 | u8 reg; | 1566 | u8 reg; |
1567 | long val; | 1567 | long val; |
1568 | 1568 | ||
1569 | err = strict_strtol(buf, 10, &val); | 1569 | err = kstrtol(buf, 10, &val); |
1570 | if (err) | 1570 | if (err) |
1571 | return err; | 1571 | return err; |
1572 | 1572 | ||
@@ -1609,7 +1609,7 @@ static ssize_t store_temp_crit(struct device *dev, struct device_attribute | |||
1609 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 1609 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
1610 | long val; | 1610 | long val; |
1611 | 1611 | ||
1612 | err = strict_strtol(buf, 10, &val); | 1612 | err = kstrtol(buf, 10, &val); |
1613 | if (err) | 1613 | if (err) |
1614 | return err; | 1614 | return err; |
1615 | 1615 | ||
@@ -1670,7 +1670,7 @@ static ssize_t store_temp_beep(struct device *dev, struct device_attribute | |||
1670 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 1670 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
1671 | unsigned long val; | 1671 | unsigned long val; |
1672 | 1672 | ||
1673 | err = strict_strtoul(buf, 10, &val); | 1673 | err = kstrtoul(buf, 10, &val); |
1674 | if (err) | 1674 | if (err) |
1675 | return err; | 1675 | return err; |
1676 | 1676 | ||
@@ -1737,7 +1737,7 @@ static ssize_t store_pwm(struct device *dev, | |||
1737 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 1737 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
1738 | long val; | 1738 | long val; |
1739 | 1739 | ||
1740 | err = strict_strtol(buf, 10, &val); | 1740 | err = kstrtol(buf, 10, &val); |
1741 | if (err) | 1741 | if (err) |
1742 | return err; | 1742 | return err; |
1743 | 1743 | ||
@@ -1788,7 +1788,7 @@ static ssize_t store_simple_pwm(struct device *dev, | |||
1788 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 1788 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
1789 | long val; | 1789 | long val; |
1790 | 1790 | ||
1791 | err = strict_strtol(buf, 10, &val); | 1791 | err = kstrtol(buf, 10, &val); |
1792 | if (err) | 1792 | if (err) |
1793 | return err; | 1793 | return err; |
1794 | 1794 | ||
@@ -1835,7 +1835,7 @@ static ssize_t store_pwm_enable(struct device *dev, struct device_attribute | |||
1835 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 1835 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
1836 | long val; | 1836 | long val; |
1837 | 1837 | ||
1838 | err = strict_strtol(buf, 10, &val); | 1838 | err = kstrtol(buf, 10, &val); |
1839 | if (err) | 1839 | if (err) |
1840 | return err; | 1840 | return err; |
1841 | 1841 | ||
@@ -1915,7 +1915,7 @@ static ssize_t store_pwm_auto_point_pwm(struct device *dev, | |||
1915 | int point = to_sensor_dev_attr_2(devattr)->nr; | 1915 | int point = to_sensor_dev_attr_2(devattr)->nr; |
1916 | long val; | 1916 | long val; |
1917 | 1917 | ||
1918 | err = strict_strtol(buf, 10, &val); | 1918 | err = kstrtol(buf, 10, &val); |
1919 | if (err) | 1919 | if (err) |
1920 | return err; | 1920 | return err; |
1921 | 1921 | ||
@@ -1969,7 +1969,7 @@ static ssize_t store_pwm_auto_point_temp_hyst(struct device *dev, | |||
1969 | u8 reg; | 1969 | u8 reg; |
1970 | long val; | 1970 | long val; |
1971 | 1971 | ||
1972 | err = strict_strtol(buf, 10, &val); | 1972 | err = kstrtol(buf, 10, &val); |
1973 | if (err) | 1973 | if (err) |
1974 | return err; | 1974 | return err; |
1975 | 1975 | ||
@@ -2015,7 +2015,7 @@ static ssize_t store_pwm_interpolate(struct device *dev, | |||
2015 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 2015 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
2016 | unsigned long val; | 2016 | unsigned long val; |
2017 | 2017 | ||
2018 | err = strict_strtoul(buf, 10, &val); | 2018 | err = kstrtoul(buf, 10, &val); |
2019 | if (err) | 2019 | if (err) |
2020 | return err; | 2020 | return err; |
2021 | 2021 | ||
@@ -2055,7 +2055,7 @@ static ssize_t store_pwm_auto_point_channel(struct device *dev, | |||
2055 | int err, nr = to_sensor_dev_attr_2(devattr)->index; | 2055 | int err, nr = to_sensor_dev_attr_2(devattr)->index; |
2056 | long val; | 2056 | long val; |
2057 | 2057 | ||
2058 | err = strict_strtol(buf, 10, &val); | 2058 | err = kstrtol(buf, 10, &val); |
2059 | if (err) | 2059 | if (err) |
2060 | return err; | 2060 | return err; |
2061 | 2061 | ||
@@ -2106,7 +2106,7 @@ static ssize_t store_pwm_auto_point_temp(struct device *dev, | |||
2106 | int point = to_sensor_dev_attr_2(devattr)->nr; | 2106 | int point = to_sensor_dev_attr_2(devattr)->nr; |
2107 | long val; | 2107 | long val; |
2108 | 2108 | ||
2109 | err = strict_strtol(buf, 10, &val); | 2109 | err = kstrtol(buf, 10, &val); |
2110 | if (err) | 2110 | if (err) |
2111 | return err; | 2111 | return err; |
2112 | 2112 | ||